RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.VarArrayPut Function

Sets the value of a single cell in a multi-dimensional Variant array.

Pascal
procedure VarArrayPut(var A: Variant; const Value: Variant; const Indices: array of Integer);
C++
VarArrayPut(Variant A, const Variant Value, const array of Integer Indices);

Variants

Use VarArrayPut to set the value of a single cell in a multi-dimensional Variant array. 

A is the Variant array that contains the cell to set. 

Value is the value to assign to the specified cell. 

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, VarArrayPut raises an EVariantBadIndexError

 

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