RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarHlpr.VariantPutElement Function

Sets the value of an element in a Variant array.

Pascal
procedure VariantPutElement(var V: Variant; const data: Variant; i1: integer); overload;
procedure VariantPutElement(var V: Variant; const data: Variant; i1: integer; i2: integer); overload;
procedure VariantPutElement(var V: Variant; const data: Variant; i1: integer; i2: integer; i3: integer); overload;
procedure VariantPutElement(var V: Variant; const data: Variant; i1: integer; i2: integer; i3: integer; i4: integer); overload;
procedure VariantPutElement(var V: Variant; const data: Variant; i1: integer; i2: integer; i3: integer; i4: integer; i5: integer); overload;
C++
VariantPutElement(Variant V, const Variant data, int i1);
VariantPutElement(Variant V, const Variant data, int i1, int i2);
VariantPutElement(Variant V, const Variant data, int i1, int i2, int i3);
VariantPutElement(Variant V, const Variant data, int i1, int i2, int i3, int i4);
VariantPutElement(Variant V, const Variant data, int i1, int i2, int i3, int i4, int i5);

VariantPutElement sets 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, a Variant value to assign, 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!