GetLength
Returns the number of elements in the specified dimension. If 0 is
specified, this returns the total number of elements in the array.
Public Function GetLength(
ByRef Arr As Variant,
Optional ByVal Dimension As Long = 0 ) As Long
Parameters
- Arr
-
[ByRef]
Variant.
The array to retrieve the number of elements from.
- Dimension
-
[ByVal]
Optional.
Long.
(Optional) the specific dimension to get the number of elements.
Default: 0
Return Values
Long - The number of elements in the specified dimension or the entire array.
Remarks
See Also
Project VBCorLib Overview
| Class cArray Overview