TSQLQuery.BeforeDelete property
Event triggered before a Delete operation.
Declaration
property BeforeDelete:;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.This description is the one of DB.TDataSet.BeforeDelete.
See also
- AfterDelete
- Delete
- BeforeScroll
- Cancel
- State
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
