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

# TDataSet.Cancel

Cancel the current editing operation

## Declaration

Source position: db.pas line 1577

`public procedure TDataSet.Cancel; virtual;`

## Description

Cancel cancels the current editing operation and sets the dataset again in browse mode. This operation triggers the TDataset.OnBeforeCancel and TDataset.OnAfterCancel events. If the dataset wa sin insert mode, then the TDataset.OnBeforeScroll and TDataset.OnAfterScroll events are triggered after and respectively before the OnBeforeCancel and OnAfterCancel events.

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

## See also

TDataset.State |  | Current operational state of the dataset
TDataset.Append |  | Append a new record to the data
TDataset.Insert |  | Insert a new record at the current position.
TDataset.Edit |  | Set the dataset in editing mode.

Documentation generated on: Feb 26 2014