You can create an array of specific size or you can create a dynamic sized array. Below we have examples of both types of arrays.
Dim myFixedArray(3) 'Fixed size array
Dim myDynArray() 'Dynamic size array
Example for fixed size Array
Dim myFixedArray(3)
myFixedArray(0) = "Item number1"
myFixedArray(1) = "Item number2"
myFixedArray(2) = "Item number3"
myFixedArray(3) = "Item number4"
Example for Dyanamic size Array
Dim myDynArray()
myDynArray(0) = "Item number1"
myDynArray(1) = "Item number2"
myDynArray(2) = "Item number3"
myDynArray(3) = "Item number4"
11 years ago
No comments:
Post a Comment