Click to See Complete Forum and Search --> : Use a for loop to generate arrays


Waterloo1
11-20-2003, 11:54 AM
Hi, I need to use a for loop to generate 3 different arrays, how can I do that?
i.e calendar0(), calendar1() and calendar2().



For i = 0 to 2
...code to generate the 3 calendar arrays...
Next

rdoekes
11-21-2003, 12:58 PM
if all the calendar arrays have the same number of elements you could opt for a multidimension array.

Dim AllCalendars(4,2)

For i = 0 to 2
AllCalendars(0,i) = "some value"
'etc...
Next