|
-
Aug 16th, 2006, 06:24 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] add to an existing array?
well i was wondering wat the fastest way to do this was? also how long can arrays be before u get an overflow error?
-
Aug 16th, 2006, 06:29 PM
#2
Re: [2005] add to an existing array?
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).
-
Aug 16th, 2006, 06:30 PM
#3
Thread Starter
Frenzied Member
Re: [2005] add to an existing array?
 Originally Posted by David Anton
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).
would
redim preserve arrayy(arrayy.length)
also work for adding another space?
-
Aug 16th, 2006, 06:43 PM
#4
Re: [2005] add to an existing array?
Of course - d'oh!
I'm so used to working in multiple languages that I overlooked that VB option.
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
|