Saturday 18 May 2013

Dynamic Arrays in vb script example

In Vb script we can define the dynamic array in vb script as mentioned below.
Size of dynamic array changes at run time. 

Example -
Dim a () - declared dynamic array a

To use dynamic array, you must use redim statement.
ReDim a(22)
 . . . 
ReDim Preserve a(44)   ' Preserve statement preserves the elements in array
 

No comments:

Post a Comment

Total Pageviews