From RAD Studio API Documentation
Jump to: navigation, search



TBatchMove = class(TComponent)


class PASCALIMPLEMENTATION TBatchMove : public System::Classes::TComponent


Type Visibility Source Unit Parent
class public
Bde.DBTables Bde.DBTables


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

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.

See Also