Sign in Join
FPDoc Onlineexperiment

TDataSet.Cancel procedure

Member of TDataSetpublicIn unit DB

Cancel the current editing operation.

Declaration

pascal
procedure Cancel; virtual

Description

Cancel cancels the current editing operation and sets the dataset again in browse mode. This operation triggers the BeforeCancel and AfterCancel events. If the dataset was sin insert mode, then the BeforeScroll and AfterScroll events are triggered after and respectively before the BeforeCancel and AfterCancel events.

If the dataset was not in one of the editing modes when Cancel is called, then nothing will happen.

See also

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