Data.DB.TDataSet.BeforeDelete

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

property BeforeDelete: TDataSetNotifyEvent read FBeforeDelete write FBeforeDelete;

C++

__property TDataSetNotifyEvent BeforeDelete = {read=FBeforeDelete, write=FBeforeDelete};

Description

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