MTSkull Posted January 14, 2004 Posted January 14, 2004 This is how I currently process dynamic arrays. 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 Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Administrators PlausiblyDamp Posted January 14, 2004 Administrators Posted January 14, 2004 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 dim s() as string 'redim s and add things etc. dim x as string for each x in s 'Do stuff next Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
sizer Posted January 14, 2004 Posted January 14, 2004 try this : For x = 0 To MyArray.GetUpperBound() - 1 'some stuff here Next :D Quote Some people are wise and some are other-wise.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.