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

TDBCheckBox.DataField

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

Declaration

Source position: dbctrls.pp line 699

published property TDBCheckBox.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

TDBCheckBox.State

  

The check, unchecked, or grayed state for the control.

TDBCheckBox.Checked

  

Indicates the checked state for the control as a Boolean value.

TDBCheckBox.DataSource

  

Provides access to the dataset with content for the control.

TDBCheckBox.ValueChecked

  

String representation for the check box value when the control is in its checked state.

TDBCheckBox.ValueUnchecked

  

String representation for the check box value when the control is in its unchecked state.

TFieldDataLink.FieldName

  

FieldName - the name of the attached field, stored as a string.

TDataLink.DataSource


Version 4.0 Generated 2025-05-03 Home