RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientDataSetUndo.UpdateTarget Method

Enables or disables the action, depending on the state of the target dataset.

Pascal
procedure UpdateTarget(Target: TObject); override;
C++
virtual __fastcall UpdateTarget(TObject * Target);

Do not call the UpdateTarget method. This method is called automatically so that actions can update themselves according to current conditions. 

In TClientDataSetUndo, UpdateTarget checks whether the current target object (specified by the Target parameter) is a data source whose dataset is an active TClientDataSet instance that has changes in its change log. If so, it sets Enabled to true. If not, UpdateTarget sets Enabled to false. 

 

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