Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...