Sign in Join
FPDoc Onlineexperiment

TSQLQuery.OnPostError property

Member of TSQLQuerypublishedIn unit SQLDB

Event triggered when a post operation fails.

Declaration

pascal
property OnPostError:;

Description

OnPostError is triggered when the Post method fails to post the changes in the dataset buffer to the underlying database, because the database engine reported an error. The event handler can be used to indicate what the response to the failed post 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
daAbort
daRetry

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

This description is the one of DB.TDataSet.OnPostError.

See also

  • TDatasetErrorEvent
  • Post
  • OnDeleteError
  • OnEditError

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