RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientDataSetRevert Class

TClientDataSetRevert causes a target client dataset to back out all changes to the current record.

Pascal
TClientDataSetRevert = class(TDataSetAction);
C++
class TClientDataSetRevert : public TDataSetAction;

Add TClientDataSetRevert to an action list or action manager to allow users to undo changes to the current record of a client dataset. Controls such as menu items and tool buttons linked to this action cause the target dataset to back out all edits to the current record. 

TClientDataSetRevert is designed to work with a target that is a TDataSource component whose dataset is a TClientDataSet instance. You can explicitly provide this target by setting the DataSource property, or you can allow the action to infer the data source from an active data-aware control. TClientDataSetRevert automatically disables itself if it does not have a target data source attached to an active client dataset. 

 

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