Skip to content

VarArrayDimCount

Return the number of dimensions of the array.

Declaration

Source position: variants.pp line 136

function VarArrayDimCount(const A: Variant) : LongInt;

Arguments

Name Description
A The variant to check.

Function result

Number of array dimensions or zero if not array.

Description

VarArrayDimCount returns the number of dimensions of the array A. If A is not an array, zero is returned.

Errors

None.

See also

Name Description
VarArrayCreate Create a variant array.
VarArrayLowBound Return lower bound of an array.
VarArrayHighBound Return lower bound of an array.