RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarHlpr.VariantGetElement Function

Returns an element from a Variant array.

Pascal
function VariantGetElement(const V: Variant; i1: integer): Variant; overload;
function VariantGetElement(const V: Variant; i1: integer; i2: integer): Variant; overload;
function VariantGetElement(const V: Variant; i1: integer; i2: integer; i3: integer): Variant; overload;
function VariantGetElement(const V: Variant; i1: integer; i2: integer; i3: integer; i4: integer): Variant; overload;
function VariantGetElement(const V: Variant; i1: integer; i2: integer; i3: integer; i4: integer; i5: integer): Variant; overload;
C++
Variant VariantGetElement(const Variant V, int i1);
Variant VariantGetElement(const Variant V, int i1, int i2);
Variant VariantGetElement(const Variant V, int i1, int i2, int i3);
Variant VariantGetElement(const Variant V, int i1, int i2, int i3, int i4);
Variant VariantGetElement(const Variant V, int i1, int i2, int i3, int i4, int i5);

VariantGetElement returns the Variant value located at the specified indices in the Variant array V.  

This function comes in five forms. Each form accepts a Variant array and a number of indices in that array, one for each dimension. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!