Arrays?

MTSkull

Well-known member
Joined
Mar 25, 2003
Messages
135
Location
Boulder, Colorado
This is how I currently process dynamic arrays.

Code:
for x = 0 to ubound(MyArray) - 1
   some stuff here
next x

Is there a .net way, alternate to UBound, that is more appropriate?

Thanks
MTS
 
Code:
For x = 0 To MyArray.GetUpperBound(0) -1
   some stuff here
Next x
is the equivalent of ubound, also you could use a for each loop

Code:
dim s() as string
redim s and add things etc.

dim x as string
for each x in s 
    Do stuff
next
 
Back
Top