RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarArrayGet Function

Returns a Variant that represents a single value from a multi-dimensional Variant array.

Pascal
function VarArrayGet(const A: Variant; const Indices: array of Integer): Variant;
C++
Variant VarArrayGet(const Variant A, const array of Integer Indices);

Variants

Use VarArrayGet to obtain the value of a single cell from a multi-dimensional Variant array. 

A is the Variant array that contains the desired value. 

Indices is an array of index values, one for each dimension of the array.

Note: Indices_Size is the index of the last value in Indices (one less than the number of dimensions in the array).
If the values specified by Indices are out of bounds, VarArrayGet raises an EVariantBadIndexError

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!