System.Rtti.TValue.SetArrayElement
Delphi
procedure SetArrayElement(Index: NativeInt; const AValue: TValue);
C++
void __fastcall SetArrayElement(System::NativeInt Index, const TValue &AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TValue |
Description
Sets an element in the array stored in the TValue record.
Call SetArrayElement to set an element in the array stored in the TValue record. The Index parameter specifies the array's index at which to store the element. The AValue is a TValue record that represents the element to be stored.
Note: SetArrayElement raises an exception if the value stored in the TValue record is not an array or if the type of AValue is not compatible with the type of the array elements.