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


Is the dataset using persistent fields or not.


Source position: db.pas line 1727

public property TDataSet.DefaultFields : Boolean
  read FDefaultFields;


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



Definitions of available fields in the underlying database



Indexed access to the fields of the dataset.



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

Documentation generated on: May 14 2021