RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDef.Create Constructor

Creates and initializes a TFieldDef instance.

Pascal
constructor Create(Owner: TFieldDefs; const Name: WideString; DataType: TFieldType; Size: Integer; Required: Boolean; FieldNo: Integer); overload; reintroduce;
C++
__fastcall TFieldDef(TFieldDefs Owner, const BSTR 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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!