2 Replies Latest reply on Oct 24, 2007 6:43 AM by aceinc

    How do I create an array collection from two separate arrays?

      I have an object that contains two arrays, one is the field names, and the other is the data. I would like to combine them into one array collection as efficiently as possible. What is the best way to do it?

      The arrays look something like;

      Array1[0] = 'First'
      Array1[1] = 'Middle'
      Array1[2] = 'Last'

      Array2[0] = ['Tom','A','Edison']
      Array2[1] = ['Frank','D','Roosevelt']

      I want to be able to reference the data like this;

      aFirstName = myArrayCollection.First[1]

      and have aFirstName = 'Frank'