Sign in Join
FPDoc Onlineexperiment

TDBMemo.EditingDone procedure

Member of TDBMemopublicIn unit DBCtrls

Called when editing has been completed in the control.

Declaration

pascal
procedure EditingDone; override

Description

EditingDone is an overridden method in TDBMemo. It is called when the user has finished editing in the control, and ensures that changes are applied to the field in the linked data set.

In TDBMemo, it calls the UpdateRecord method in the field data link when it can be modified and has been placed in edit mode. The inherited method is called to signal the OnEditingDone event handler (when assigned).

If the field cannot be modified in the linked data set, or the data set is not in Edit mode, the Reset method in the field data link is called. This will signal the OnDataChange event handler (when assigned), but the linked data set is not updated.

EditingDone is called from the KeyUpAfterInterface method when the VK_RETURN key code is handled, and when the focus is changed to another control.

See also

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