API:Bde.DBTables.TBDEDataSet.BeforeDelete

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property BeforeDelete: TDataSetNotifyEvent read FBeforeDelete write FBeforeDelete;

C++

__property BeforeDelete;

Properties

Type Visibility Source Unit Parent
event published
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TBDEDataSet

Description

Occurs before an application attempts to delete the active record.

Bde.DBTables.TBDEDataSet.BeforeDelete inherits from Data.DB.TDataSet.BeforeDelete. All content below this line refers to Data.DB.TDataSet.BeforeDelete.

Occurs before an application attempts to delete the active record.

Write a BeforeDelete event handler to take specific action before an application deletes the active record. BeforeDelete is called by Delete before it actually deletes a record.

In Delphi, making use of this event an application might, for example, display a dialog box asking for confirmation before deleting the record. On denial of confirmation, the application could abort the deletion by calling the Abort procedure.

BeforeDelete is an event handler of type Data.DB.TDataSetNotifyEvent.

See Also