|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating a dynamic array in VB NETAs 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. Yes this is possible, but you may want to consider using ArrayLists in
VB.NET since they are much more efficient. A good article explaining the performance difference may be found here: http://www.aspheute.com/english/20001025.asp -Nelson hien_t***@ghc-hmo.com wrote:
> As in VB6, is it possible to create a dynamic array in VB NET and then In VB.NET each array can be redimensioned using 'ReDim Preserve'. > use Redim Preserve after knowing the index of the array? Thank you in > advance for your help. However, sometimes it's better to use more dynamic data structures like 'ArrayList' or 'List(Of T)' (.NET 2.0). -- Herfried K. Wagner [MVP] |
|||||||||||||||||||||||