RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::PutElement Method (Variant&, int)

Assigns an element as the value of an entry in a System::Variant::Variant array.

Pascal
procedure PutElement(const data: Variant&; const i1: Integer);
procedure PutElement(const data: Variant&; const i1: Integer; const i2: Integer);
procedure PutElement(const data: Variant&; const i1: Integer; const i2: Integer; const i3: Integer);
procedure PutElement(const data: Variant&; const i1: Integer; const i2: Integer; const i3: Integer; const i4: Integer);
procedure PutElement(const data: Variant&; const i1: Integer; const i2: Integer; const i3: Integer; const i4: Integer; const i5: Integer);
C++
__fastcall void PutElement(const Variant& data, const int i1);
__fastcall void PutElement(const Variant& data, const int i1, const int i2);
__fastcall void PutElement(const Variant& data, const int i1, const int i2, const int i3);
__fastcall void PutElement(const Variant& data, const int i1, const int i2, const int i3, const int i4);
__fastcall void PutElement(const Variant& data, const int i1, const int i2, const int i3, const int i4, const int i5);

Use System::Variant::PutElement to access one-dimensional and multi-dimensional System::Variant::Variant arrays of up to 5 dimensions. The data parameter is the value to assign. The remaining parameters provide indexes into the dimensions of the array. 

 

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