well i was wondering wat the fastest way to do this was? also how long can arrays be before u get an overflow error?
Printable View
well i was wondering wat the fastest way to do this was? also how long can arrays be before u get an overflow error?
Use the static Array.Resize method.
But you also may want to check out the generic System.Collections.Generic.List(Of T). This is designed to grow and shrink efficiently (similar to ArrayList, but generic).
wouldQuote:
Originally Posted by David Anton
redim preserve arrayy(arrayy.length)
also work for adding another space?
Of course - d'oh!
I'm so used to working in multiple languages that I overlooked that VB option.