RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBatchMove Class

TBatchMove performs database operations on groups of records or entire tables.

Pascal
TBatchMove = class(TComponent);
C++
class TBatchMove : public TComponent;

Use a TBatchMove object to  

Add the records in a dataset to a database table. 

Delete the records in a dataset from a database table. 

Copy a dataset to create a new database table or overwrite an existing table. 

Set the Mode property to specify the desired operation. The Source and Destination properties indicate the datasets whose records are added, deleted, or copied. Other properties further specify how to perform the operation and how to handle problems that TBatchMove encounters when performing its operation. Once you have set properties to indicate what you want to do, call the Execute method to perform the actual operation.

Note: TTable objects can also perform the same batch operations, but only using the options specified by the default TBatchMove property values.
Tip: Applications can use a TBDECallback object to further refine the response to problems that arise.
 

 

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