How Can I Describe A Dynamic Array In Visual Basic 6?


2 Answers

Shumaila Sadia Profile
Shumaila Sadia answered
This is quite easy to create array or dynamic array if you know the syntax of language you are using to create dynamic array as well you have very good concept of dynamic arrays and their use. For having information regarding dynamic arrays in VB 6, see the following website;
Alongbar Daimary Profile
Dynamic Array is an array which size is not given at the time of its Declaration.
And Its size can be Changed any time as per requirement.

Dim DArray() 'Declaring Dynamic Array.
REdim DArray(1) ' It is Required to Redim a dynamic array with size before it is used.
DArray(0)=1 'Assigning Value.
Redim preserve DArray(3) 're-declaring with another size. Preserve key word preserves the 'previous values assigned to the array.

Answer Question