TFieldDataLink.Reset procedure
Checks whether the link is active, calls the
OnDataChange event
handler then sets
IsModified to
False.
Declaration
procedure ResetDescription
Reset is a procedure used to cancel pending changes in the Control
value before they are written to the Field in the linked dataset. Reset
signals the
OnDataChange event handler (when assigned), but does not store
pending changes to the current record in the linked dataset.
The internal IsModified flag is reset in the method, as are flags which track the editing state for the source of the control value. Call the OnDataChange event handler to affect the internal IsModified flag only.
Reset is used in the implementation of methods in data-aware controls which process, apply, or cancel changes to the control value.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
