Data.DB.TFieldDef.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Owner: TFieldDefs; const Name: string;  DataType: TFieldType; Size: Integer; Required: Boolean; FieldNo: Integer); reintroduce; overload; virtual;

C++

__fastcall virtual TFieldDef(TFieldDefs* Owner, const System::UnicodeString Name, TFieldType DataType, int Size, bool Required, int FieldNo)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
Data.DB.pas
Data.DB.hpp
Data.DB TFieldDef

Description

Creates and initializes a TFieldDef instance.

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.

See Also