Sign in Join
FPDoc Onlineexperiment

TDBComboBox.DataChange procedure

Member of TDBComboBoxprotectedIn unit DBCtrls

DataChange - updates the text if it has changed.

Declaration

pascal
procedure DataChange(Sender: TObject); override

Arguments

Sender

Object for the event notification.

Description

DataChange is an overridden method used to perform actions needed when the value in the linked dataset has been changed. DataChange uses the Field property from the data link (when assigned) to get the current value stored in the Text property for the control. If Field has not been assigned, or the dataset is not active, the value in Text is set to an empty string ('').

DataChange is assigned as the OnDataChange event handler in the internal TFieldDataLink instance used in the control.

See also

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