Rolls back all pending changes made in the DataTables of a DataSet.
Syntax:
>>--EXEC ADO---.--------------------.—REJECT CHANGES FOR-------->
+-USING dataset_name-+
>-------------.----------------.------------------------------->
+-ALL DATATABLES-+
| +---- , ----+ |
| V | |
+-datatable_name-+
>--END-EXEC----><
Parameters:
dataset_name
|
The DataSet reference to be used. If you do not specify
dataset_name, the current DataSet is used.
|
datatable_name
|
The DataTables where the changes are rejected.
|
Example:
EXEC ADO
REJECT CHANGES FOR ALL DATATABLES
END-EXEC
Comments:
The row state and contents of the deleted and modified DataRows are returned to their original state and any added DataRows are removed.
No changes are made to the underlying data source. Only the DataTables in the DataSet reject changes.