Name

VarArrayDimCount Function

Syntax

function VarArrayDimCount(const V: Variant): Integer;

Description

VarArrayDimCount returns the number of dimensions of a Variant array. If V is not a Variant array, the function returns zero.

VarArrayDimCount is a real function.

Example

var
  V: Variant;
begin
  V := VarArrayCreate([1, 12], varDouble);
  WriteLn(VarArrayDimCount(V)); // Writes 1

See Also

TVarArray Type, TVarArrayBound Type, VarArrayCreate Function, VarArrayHighBound Function, VarArrayLock Function, VarArrayLowBound Function, VarArrayOf Function, VarArrayRedim Procedure, VarArrayRef Function, VarArrayUnlock Function, Variant Type, VarIsArray Function, VarType Function

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.