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

# TFieldDataLink.Reset

Checks whether the link is active, calls the OnDataChange event handler then sets IsModified to False.

## Declaration

Source position: dbctrls.pp line 82

`public procedure TFieldDataLink.Reset;`

## Description

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

TFieldDataLink.Control |  | The Control to which this datalink is attached.
TFieldDataLink.OnDataChange |  | Event handler signalled when the field data link has been changed.
TDBEdit.Reset |  | Cancels pending changes to the linked dataset.
TDBEdit.KeyDown |  | Handles key down events in the control.