FireDAC.Comp.DataSet.TFDDataSet.SetFieldAttributes

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

Delphi

procedure SetFieldAttributes(AField: TField; AColumn: TFDDatSColumn); overload;
procedure SetFieldAttributes(ALifeCycles: TFieldLifeCycles; AFields: TFields); overload;
procedure SetFieldAttributes(ALifeCycles: TFieldLifeCycles); overload;

C++

void __fastcall SetFieldAttributes(Data::Db::TField* AField, Firedac::Dats::TFDDatSColumn* AColumn)/* overload */;
void __fastcall SetFieldAttributes(Data::Db::TFieldLifeCycles ALifeCycles, Data::Db::TFields* AFields)/* overload */;
void __fastcall SetFieldAttributes(Data::Db::TFieldLifeCycles ALifeCycles)/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

説明

ProviderFlags フィールド群をセットアップします。


SetFieldAttributes メソッドを使用すると、データセットの ProviderFlags フィールド群や他の何らかのプロパティをセットアップできます。FireDAC データセットでは、次のいずれかの場合、それを自動的に行います。

  • データセットで一時フィールドを使用している。
  • 設計時にプログラマが永続フィールドを追加する。

アプリケーションで手動でまたは CreateFields メソッドを使ってフィールドを作成する場合、上記のプロパティは自動的にはセットアップされません。これらをセットアップするには、データセットが開かれた後で SetFieldAttributes メソッドを呼び出します。

FDQuery1.FieldDefs.Updated := False;
FDQuery1.FieldDefs.Update;
FDQuery1.CreateFields;
....
FDQuery1.Open;
FDQuery1.SetFieldAttributes;

関連項目