[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'db' (#fcl)

TFieldDef

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class to describe one field in a record in a dataset

Declaration

Source position: db.pas line 169

type TFieldDef = class(TNamedItem)

public

  constructor create();

  

Constructor for TFieldDef.

  destructor Destroy; override;

  

Free the TFieldDef instance

  procedure Assign(); override;

  

Assign the contents of one TFieldDef instance to another.

  function CreateField();

  

Create TField instance based on definitions in current TFieldDef instance.

  FieldClass: TFieldClass;

  

TField class used for this fielddef

  FieldNo: LongInt;

  

Field number

  InternalCalcField: Boolean;

  

Is this a definition of an internally calculated field ?

  Required: Boolean;

  

Is the field required ?

published

  Attributes: TFieldAttributes;

  

Additional attributes of the field.

  DataType: TFieldType;

  

Data type for the field

  Precision: LongInt;

  

Precision used in BCD (Binary Coded Decimal) fields

  Size: Integer;

  

Size of the buffer needed to store the data of the field

end;

Inheritance

TFieldDef

  

Class to describe one field in a record in a dataset

|

TNamedItem

  

Named collection item

|

TCollectionItem

|

TPersistent,IFPObserved

|

TObject

Description

TFieldDef is used to describe the fields that are present in the data underlying the dataset. For each field in the underlying field, an TFieldDef instance is created when the dataset is opened. This class offers almost no methods, it is mainly a storage class, to store all relevant properties of fields in a record (name, data type, size, required or not, etc.)

See also

TDataset.FieldDefs

  

Definitions of available fields in the underlying database

TFieldDefs

  

Collection of TFieldDef instances.


Documentation generated on: Feb 02 2013