Data.DB.TFieldDefs.Items

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

Delphi

property Items[Index: Integer]: TFieldDef read GetFieldDef write SetFieldDef; default;

C++

__property TFieldDef* Items[int Index] = {read=GetFieldDef, write=SetFieldDef/*, default*/};

プロパティ

種類 可視性 ソース ユニット
property public
Data.DB.pas
Data.DB.hpp
Data.DB TFieldDefs


説明

データセットにおける各物理フィールドを記述する、フィールド定義のリストです。

Items を使用すると、特定のフィールド定義にアクセスすることができます。フィールド定義を指定すると、Index パラメータでアクセスすることができます。Index は、フィールド定義リストにおけるフィールドの定義位置を示す整数で、0 から Count - 1 の範囲になります。

たとえば、次のコードでは、最初のフィールド定義の名前を、ラベルに表示しています:

Label1.Caption := ClientDataSet1.FieldDefs.Items[0].DisplayName;
Label1->Caption = ClientDataSet1->FieldDefs->Items[0]->DisplayName;

関連項目