Data.DB.TDataSet.OnDeleteError

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 OnDeleteError: TDataSetErrorEvent read FOnDeleteError write FOnDeleteError;

C++

__property TDataSetErrorEvent OnDeleteError = {read=FOnDeleteError, write=FOnDeleteError};

Description

Occurs when an application attempts to delete a record and an exception is raised.

Write an OnDeleteError event handler to handle exceptions that occur when an attempt to delete a record fails.

The DataSet parameter specifies the dataset that generated the E exception, while the Action parameter should be set by the developer with one of the possible actions defined by TDataAction (daFail, daAbort, or daRetry).

OnDeleteError is an event handler of type Data.DB.TDataSetErrorEvent.

See Also