Sign in Join
FPDoc Onlineexperiment

TDataSet.OnEditError property

Member of TDataSetpublicIn unit DB

Event triggered when an edit operation fails.

Declaration

pascal
property OnEditError: TDataSetErrorEvent read FOnEditError write FOnEditError;

Description

OnEditError is triggered when the Edit method fails to put the dataset in edit mode because the underlying database engine reported an error. The event handler can be used to indicate what the response to the failed edit operation should be. To this end, it gets the exception object passed to it (parameter E), and it can examine this object to return an appropriate action in the DataAction parameter. The following responses are supported:

daFail

The operation should fail (an exception will be raised).

daAbort

The operation should be aborted (edits are undone, and an EAbort exception is raised).

daRetry

Retry the operation.

For more information, see also the description of the TDatasetErrorEvent event handler type.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.