Sign in Join
FPDoc Onlineexperiment

TDBCheckBox.DataField property

Member of TDBCheckBoxpublishedIn unit DBCtrls

The name (as a string) of the field with which the check box is to be associated.

Declaration

pascal
property DataField: string read GetDataField write SetDataField;

Description

DataField is a String property which specifies the name of the field in the linked dataset where the value for the data-aware control is stored. Read and write access to the property value is redirected to the FieldName property in the internal TFieldDataLink instance used in the class.

The field can use either a Boolean or a String data type. For a String field type, use either the ValueChecked or ValueUnchecked property to define the value stored in the dataset for the corresponding control State.

Use DataSource to specify the linked dataset for the data-aware control.

Use Checked to read or write the control state (and the value for the field) as a Boolean data type.

See also

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