RAD Studio |  |

Canceling Batch Updates
See Also
Collapse All

Cancel pending data changes that have not yet been canceled or applied by calling the CancelBatch method. When you cancel pending batch updates, field values on rows that have been changed revert to the values that existed prior to the last call to CancelBatch or UpdateBatch, if either has been called, or prior to the current pending batch of changes.

Used alone with no parameter, CancelBatch cancels all pending updates. A TAffectRecords value can optionally be passed as the parameter for CancelBatch. If any value except arAll is passed, only a subset of the pending changes are canceled. Passing arAll is the same as passing no parameter at all and causes all pending updates to be canceled. The example below cancels all pending changes:

Copy Code

    ADODataSet1.CancelBatch;

Copy Code

    ADODataSet1->CancelBatch(arAll);

See Also

Opening the Dataset in Batch Update Mode

Inspecting the Update Status of Individual Rows

Filtering Multiple Rows Based On Update Status

Applying the Batch Updates to Base Tables

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