RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IBCustomDataSet.TIBUpdateErrorEvent Type

TIBUpdateErrorEvent is the type of event handlers that respond when an IBX dataset encounters an error applying a cached update.

Pascal
TIBUpdateErrorEvent = procedure (DataSet: TDataSet; E: EDatabaseError; UpdateKind: TUpdateKind; var UpdateAction: TIBUpdateAction) of object;
C++
(DataSet: TDataSet; E: EDatabaseError; UpdateKind: TUpdateKind; var UpdateAction: TIBUpdateAction) ( TIBUpdateErrorEvent)();

DataSet is the TIBCustomDataSet descendant that is attempting to apply cached updates. 

E is an EDBEngineError object from which an application can extract an error message and the actual cause of the error condition. An OnUpdateError handler can use this information to determine how to respond to the error condition. 

UpdateKind indicates whether the error occurred while inserting, deleting, or modifying a record. 

UpdateAction indicates the action to take when the OnUpdateError handler exits. On entry into the handler, UpdateAction is always set to uaFail. If OnUpdateError can handle or correct the error, set UpdateAction to uaRetry before exiting the error handler. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!