RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomProvider.DoBeforeApplyUpdates Method

Generates a BeforeApplyUpdates event.

Pascal
procedure DoBeforeApplyUpdates(var OwnerData: OleVariant); virtual;
C++
virtual __fastcall DoBeforeApplyUpdates(OleVariant OwnerData);

The ApplyUpdates method calls DoBeforeApplyUpdates to generate the BeforeApplyUpdates event before it applies the updates in Delta. 

Delta is the delta packet containing the updates as received from the client.  

MaxErrors is the number of errors tolerated before the update operation should aborted.  

OwnerData supplies custom information to the BeforeApplyUpdates event handler. The BeforeApplyUpdates event handler can change this value. The returned value is then passed to the AfterApplyUpdates event handler after applying the updates in Delta. 

As implemented in TCustomProvider, Delta and MaxErrors are ignored.  

 

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