TDBCheckBox.UpdateData procedure
UpdateData - examines the
State to see whether it has
changed.Declaration
procedure UpdateData(Sender: TObject)Arguments
Sender | Object for the event notification. |
Description
UpdateData is a procedure used to update the linked dataset for
the control when the value in the
State property has been changed.
When State contains cbGrayed, the Field in the linked
dataset is cleared. For other values, the Field data type determines whether
one of the values in Checked, ValueChecked, or
ValueUnchecked is used. If the Field is a Boolean data
type, the value in Checked is stored to the linked dataset. Otherwise, the
text for the field is updated using the value from ValueChecked
(when Checked is True) or ValueUnchecked (when Checked is
False).
UpdateData is used as the OnUpdateData event handler in the
internal TFieldDataLink instance for the class.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
