TDataSet.BeforeDelete property
Event triggered before a Delete operation.
Declaration
property BeforeDelete: TDataSetNotifyEvent read FBeforeDelete write FBeforeDelete;Description
BeforeDelete is triggered at the start of the
Delete operation, when the dataset is still in
dsBrowse state.
The event handler can be used to abort the delete operation: if an exception is raised during the event handler, then the delete operation stops.
The event is followed by a
BeforeScroll event. If the dataset was in insert mode when the
Delete method was called, then
the event will not be called, as
Cancel is called instead.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
