System.Rtti.TValue.SetArrayElement

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure SetArrayElement(Index: Integer; const AValue: TValue);

C++

void __fastcall SetArrayElement(int Index, const TValue &AValue);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TValue

説明

TValue レコードに格納された配列に、要素を設定します。

SetArrayElement メソッドを呼び出すと、TValue レコードに格納された配列に要素を設定できます。 Index パラメータは、要素が格納されている配列のインデックスを示します。 AValue は、TValue 格納されるべき要素を表すレコードです。

メモ:  SetArrayElement メソッドは、TValue レコードに格納された値が配列に含まれない場合、もしくは AValue の型が配列の要素の型と互換性がない場合に例外を発生させます。

関連項目