Syntax
Public Function ArrayDimension(ByRef Ary As Variant) As Integer
Description
This function is used to return the multidimensional array rank.
Parameters
Key | Description |
Ary | The Array to get the rank for it. Value of type is Variant |
Return value
Returns the given array rank as value of type Integer.
Sample
Public Sub main() Dim i Dim Size CopyHigh 0, 10, 20, i Dimension = ArrayDimension (i) AlertMessage (Dimension) 'return1 1 (one dimension) End Sub
See Also