From RAD Studio API Documentation
Jump to: navigation, search


function HandlesTarget(Target: TObject): Boolean; override;


virtual bool __fastcall HandlesTarget(System::TObject* Target);


Type Visibility Source Unit Parent
function public
Vcl.DBActns TDataSetAction


Indicates whether the action can execute its function.

Do not call the HandlesTarget method. This method is called automatically when the user invokes an object (such as a tool button or menu item) that is linked to this action. The HandlesTarget method provides the action object with an opportunity to indicate whether it is appropriate to execute at this time with the object specified by the Target parameter as a "target".

Target is the current target object.

HandlesTarget checks that the target of is a TDataSource component with a DataSet property that is not nil (Delphi) or NULL (C++). If so, it returns true. If not, it returns false.

See Also