Syntax
Public Function ArrayRange(ByRef Ary As Variant, ByVal rank_index As Integer) As Integer
Description
This function is used to return the number of the element in given array dimension.
Parameters
Key | Description |
Ary | Checked array. Value of type is Variant |
rank_index | The index of dimension. Value of type is Integer |
Return value
Returns the number of elements in the selected array.
Sample
Public Sub main() Dim i Dim Element Dim compare CopyHigh 0, 10, 20, i Element = ArrayRange (i, 1) AlertMessage (element) End Sub
See Also