RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::GetElement Method (int)

Returns the value of a specified element in a System::Variant::Variant array.

Pascal
function GetElement(const i1: Integer): Variant;
function GetElement(const i1: Integer; const i2: Integer): Variant;
function GetElement(const i1: Integer; const i2: Integer; const i3: Integer): Variant;
function GetElement(const i1: Integer; const i2: Integer; const i3: Integer; const i4: Integer): Variant;
function GetElement(const i1: Integer; const i2: Integer; const i3: Integer; const i4: Integer; const i5: Integer): Variant;
C++
__fastcall Variant GetElement(const int i1) const;
__fastcall Variant GetElement(const int i1, const int i2) const;
__fastcall Variant GetElement(const int i1, const int i2, const int i3) const;
__fastcall Variant GetElement(const int i1, const int i2, const int i3, const int i4) const;
__fastcall Variant GetElement(const int i1, const int i2, const int i3, const int i4, const int i5) const;

Use System::Variant::GetElement to access one-dimensional or multi-dimensional System::Variant::Variant arrays of up to 5 dimensions. The parameters specify the indexes of the desired element. 

 

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