Data.DB.TField.OnChange
Delphi
property OnChange: TFieldNotifyEvent read FOnChange write FOnChange;
C++
__property TFieldNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Data.DB.pas Data.DB.hpp |
Data.DB | TField |
Description
Occurs immediately after the data in the field is written to the record buffer.
Write an OnChange event handler to respond to any changes in the field's data. OnChange allows a response once the data has been successfully written to the record buffer.
When writing the value of a field to the current record buffer, the following steps occur:
- The OnValidate event handler is called to validate the data.
- If the OnValidate event handler accepts the current Value, the data is written to the record buffer.
- If writing the data does not raise an exception, the OnChange event handler is called to allow a response to the change.
OnChange is an event handler of type Data.DB.TFieldNotifyEvent.