Array vs. Collection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • News Central

    Array vs. Collection

    Can anyone give some overview of the difference between array and Collection
    in terms of performance.... thanks :>


  • J French

    #2
    Re: Array vs. Collection

    On Mon, 15 Mar 2004 15:38:04 -0800, "News Central" <Bay@Bay.com>
    wrote:
    [color=blue]
    >Can anyone give some overview of the difference between array and Collection
    >in terms of performance.... thanks :>[/color]

    Define 'performance'

    Functionality or speed ?

    Comment

    • Joon Nan

      #3
      Re: Array vs. Collection

      Using Collection you can provide a key to get the item without doing a nest
      loop.

      e.g.
      Dim temperature As New Collection
      temperature.Add 23, "KL" ' collection_obje ct.Add value, key
      temperature.Add 10, "Leeds"
      temperature.Add 5, "China"

      'To get the KL temperature
      Dim t
      t = temperature.Ite m("KL")


      Regards,
      Joon Nan

      "News Central" <Bay@Bay.com> wrote in message
      news:do2dnZRvoK xOo8vdRVn-ug@baytsp.com.. .[color=blue]
      > Can anyone give some overview of the difference between array and[/color]
      Collection[color=blue]
      > in terms of performance.... thanks :>
      >
      >[/color]


      Comment

      Working...