TheKingOfWit Posted April 3, 2003 Posted April 3, 2003 i'm using VB.net to get a list of folders in a directory. after i do this i check for subfolders of those directories. now i don't know how many directories i'm going to get so i end up ReDimming my array through every run of my loop. is there a better way to do this? i hear ReDim is very processor intensive and the program lags a bit when it runs. i'm trying to not have an array with 1000 positions if i only end up with 200 folders. thanks. Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 You can redim in chunks of 100. Quote Visit...Bassic Software
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.