|
-
Aug 5th, 2002, 08:26 AM
#5
PowerPoster
I would actually suggest that if u sorta know that the array may grow u should set the new size before you enter the loop and then reset it back if necessary after the loop completes. Redim preserving inside a loop is extremely slow.
eg Pseudo
Original array is 20 elements
I'm gonna add 5 elements in the loop maybe
Redim Preserve Array (25)
Looping looping
Add a few items
End loop
Hey I only added 3
Redim Preserve (23)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|