Creating a dynamic array in VB NET

  • Thread starter Thread starter hien_tran
  • Start date Start date
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.
 
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).
 
Back
Top