Hi Keven,
For dymanic growth of an array you can use the ReDim if you are working with
VB.NET. We have to use the "Preserve" keyword along the ReDim, otherwise the
data in your existing array will be cleared.
Dim arr(3) as String
arr(0)="String1"
ReDim Preserve arr(7)
Here I redefined the size of "arr" to 8 (0-7). But you can use a global
variable of numeric type so as to increase the size dynamically.
Ex. Dim arrSize as Integer - global variable
Dim arr(3) as String
arr(0)="String1"
........................
........................
arrSize = someMethods() that'll return a dynamic value
ReDim Preserve arr(arrSize) - thereby you can set the array length
dynamically.