RAD Studio VCL Reference
|
Represents the current state of edits when logging changes.
property SavePoint: Integer;
__property int SavePoint;
Use SavePoint to save and later revert to an editing state. SavePoint is an integer that represents the current state of the change log. To use SavePoint to roll back the changes in the change log to an earlier state, set SavePoint to the value it had before the changes that should be rolled back.
Thus, when the client dataset is in a state you may want to return to, assign SavePoint to a variable:
BeforeChanges := ClientDataSet1.SavePoint;
BeforeChanges = ClientDataSet->SavePoint;
Later, to roll back all edits that were made since that point, assign the variable to SavePoint:
ClientDataSet1.SavePoint := BeforeChanges;
ClientDataSet->SavePoint = BeforeChanges;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|