System.Classes.TBasicActionLink.Execute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Execute(AComponent: TComponent = nil): Boolean; virtual;

C++

virtual bool __fastcall Execute(TComponent* AComponent = (TComponent*)(0x0));

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TBasicActionLink

Description

Invokes the action's Execute method and specifies to the action that the AComponent client has caused this action to execute.

Execute calls the action's Execute method and returns its result. In the TBasicActionLink class, Execute calls the action's System.Classes.TBasicAction.Execute method and returns True if the action has an assigned OnExecute event handler, False otherwise.

Execute specifies to the action that AComponent is the client component that has caused this action to execute. (The user has clicked this component to execute the action.) In the TBasicActionLink class, Execute assigns AComponent to the System.Classes.TBasicAction.ActionComponent property of the action.

See Also