System.Variants.VarArrayPut

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure VarArrayPut(var A: Variant; const Value: Variant; const Indices: array of Integer);

C++

extern DELPHI_PACKAGE void __fastcall VarArrayPut(System::Variant &A, const System::Variant &Value, const int *Indices, const int Indices_High);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

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

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.

See Also


Code Examples