Arrays in VB.NET

  • Thread starter Thread starter Viswanathan S
  • Start date Start date
V

Viswanathan S

What is the maximum limit of array size in declaration? how it differ from
VB6 arrays?
 
Viswanthan,

I never saw anything about a maximum declaration.
Why not just try it.

The array in VBNet is (hold) very much the same as the array in VB6. You can
even start it at the first and then work with it as an classic VB array.

The difference come when you want to redim it, although that is almost
compatible, would I strongly advice you to try in those situations to use a
more dynamic array as by instance arraylist..

I hope this helps,

Cor
 
Hi,
What is the maximum limit of array size in declaration?

As far as I can see, maximum upper bound you can have is Integer.MaxValue -
1.

Though, even Byte array of this size will take 2G of memory, so you probably
won't use it too much. 8=]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top