Creating a dynamic array in VB NET

H

hien_tran

As in VB6, is it possible to create a dynamic array in VB NET and then
use Redim Preserve after knowing the index of the array? Thank you in
advance for your help.
 
H

Herfried K. Wagner [MVP]

As in VB6, is it possible to create a dynamic array in VB NET and then
use Redim Preserve after knowing the index of the array? Thank you in
advance for your help.

In VB.NET each array can be redimensioned using 'ReDim Preserve'.
However, sometimes it's better to use more dynamic data structures like
'ArrayList' or 'List(Of T)' (.NET 2.0).
 

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

Top