Returns the total number of dimensions (the rank) in the array.
...array.Rank
Prerequisites
None
Parameters
None
Remarks
The Rank of an array is the number of dimensions in that array.
Examples
Dim array(3,4) As Integer
Dim array2(5) As Integer
Dim r1, r2 As Integer
r1 = array.Rank ' Returns 2
r2 = array2.Rank ' Returns 1
See Also