Board index » Visual Studio » Declare Array as Collection?
|
gnnh
|
Declare Array as Collection?
Visual Studio4
I am using an array, the elements of which are collection objects. I am unsure of the best/safest/proper/most advantagous... way to declare the array. Both methods shown work, but I'm unsure of what 'side-effects' might arise from one or the other. Should one? Dim Arry(2) As New Collection Arry(0).Add <someitem> '... etc. Or should one? Dim Arry(2) as Collection For Indx=0 to 2 Set Arry(Indx)= New Collection Next Indx Arry(0).Add <someitem> ' ... etc. Or doesn't it matter? -- Al K A CDC 1604 was a Univac 1103 made at 501 Park Ave. - |
