Sign in Join
FPDoc Onlineexperiment

TDataSet.DefaultFields property

Member of TDataSetpublicIn unit DB

Is the dataset using persistent fields or not.

Declaration

pascal
property 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 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.