RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDef.Create Constructor

Creates and initializes a TFieldDef instance.

Pascal
constructor Create(Owner: TFieldDefs; const Name: string; DataType: TFieldType; Size: Integer; Required: Boolean; FieldNo: Integer); virtual; overload; reintroduce;
C++
virtual __fastcall TFieldDef(TFieldDefs Owner, const AnsiString Name, TFieldType DataType, int Size, Boolean Required, int FieldNo);

Applications should not call Create directly. A TFieldDef is created automatically by the dataset for each field in an already existing table. When composing field definitions preparatory to creating a new dataset, the TFieldDefs.AddFieldDef method (or the older TFieldDefs.Add method) creates the needed instance of TFieldDef

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!