Fade BS via DotNetMonster.com <fo***@DotNetMonster.com> wrote:
you declare the array as so:
dim Numbers as int32()
and then you can dnamically change size like so:
redim Numbers(100) ' <producing 101 items as indexes range from 0 to 100
Note: if you want to array to keep the values when you resize it,use:
redim preserve ( ? )
Note: you have to use 'Redim' at least once before accessing the array to
initiate it's size! otherwise an exception is thrown
You can't do that in C#, however, and it's not *actually* changing the
size of the array - it's creating a new arrray and copying the old
data, which is inefficient if you do it often.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too