Good thing that array's big enough
The Weird and The Wonderful
3
Posts
3
Posters
0
Views
1
Watching
-
-
mlNumOfSomething = SomeClass.GetSomething(anIDArray())
For lli = 1 To mlNumOfSomething
SomeClass.GetSomeInfo anIDArray(lli), Description:=aDescription ReDim Preserve msAllAgencies(1 To mlNumOfSomething) msSomeArray(lli) = aDescription
Next lli
I guess they won't need to use an obfuscater...
-
mlNumOfSomething = SomeClass.GetSomething(anIDArray())
For lli = 1 To mlNumOfSomething
SomeClass.GetSomeInfo anIDArray(lli), Description:=aDescription ReDim Preserve msAllAgencies(1 To mlNumOfSomething) msSomeArray(lli) = aDescription
Next lli
That is truely awful. Much better would be:
mlNumOfSomething = SomeClass.GetSomething(anIDArray())
lItemToAdd = 0
For lli = 1 To mlNumOfSomething
SomeClass.GetSomeInfo anIDArray(lli), Description:=aDescription
lItemToAdd = lItemToAdd + 1
ReDim Preserve msAllAgencies(1 To lItemToAdd)
msSomeArray(lItemToAdd) = aDescription
Next lliThat way you can add in logic to exclude items.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H