name | Name of the variable |
---|---|
dimensions | Dimensions of an array variable up to 60 multiple dimensions may be declared. The subscripts parameter uses the following syntax:
upper_index[, upper_index] ...
The lower array index is always 0. |
' Definition of two variables
Dim nVar, nNum
' Definition of an array with 10 elements
Dim Names(
9)
' Definition of a dynamic array
Dim Names()
Dim nVar, nNum 'Definition of two variables
Dim Names(9) 'Definition of an array with 10 elements
Dim Names() 'Definition of a dynamic array
Dim arr(
2,3)
arr(0, 0) = 10
arr(1, 0) = 20
arr(2, 0) = 30
arr(0, 1) = 5
arr(0, 2) = 15
' ...