ArrayDimensionCount¶
Include: Use System\Reflection.pkg
See Also: ArrayTypeOf, ArrayDimensionCount, ArrayDimentionSize, ValueTypeOfArray, ArrayInstanceSize
Purpose¶
Returns the number of dimensions for an array metadata handle.
Syntax¶
Function ArrayDimensionCount Global Handle hArray Returns Integer
Arguments¶
hArray
: Array metadata handle.
Returns¶
The number of array dimensions.
Behavior¶
Invalid or zero handles raise a DataFlex error.
Example¶
Integer[2][5] aiValues
Handle hArray
Integer iDims iSize
DfType eType
Get ArrayTypeOf aiValues to hArray
Get ArrayDimensionCount hArray to iDims
Get ArrayDimentionSize hArray 1 to iSize
Get ValueTypeOfArray hArray to eType