Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataSet.DefaultFields

Is the dataset using persistent fields or not.

Declaration

Source position: db.pas line 1948

public property TDataSet.DefaultFields : Boolean
  read FDefaultFields;

Description

DefaultFields is True if the fields were generated dynamically when the dataset was opened. If it is False then the field instances are persistent, i;e. they were created at design time with the fields editor. If DefaultFields is True, then for each item in the TDataset.FieldDefs property, a field instance is created. These fields instances are freed again when the dataset is closed.

If DefaultFields is False, then there may be less field instances than there are items in the FieldDefs property. This can be the case for instance when opening a DBF file at runtime which has more fields than the file used at design time.

See also

TDataset.FieldDefs

  

Definitions of available fields in the underlying database.

TDataset.Fields

  

Indexed access to the fields of the dataset.

TField

  

Provide access to the contents of a single field in a record.


Documentation generated on: Dec 22 2024