help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TBasicActionLink.Execute

Calls the action's Execute method.

Declaration

Source position: classesh.inc line 1416

public function TBasicActionLink.Execute(

  AComponent: TComponent = nil

):Boolean; virtual;

Description

Execute sets the ActionComponent property of the associated Action to AComponent and then calls the Action's execute method. After the action has executed, the ActionComponent property is cleared again.

The return value of the function is the return value of the Action's execute method.

Application programmers should never call Execute directly. This method will be called automatically when the associated control is activated. (e.g. a button is clicked on)

Component programmers should call Execute whenever the action should be activated.

See also

Action

  

The action to which the link was assigned.

TBasicAction.ActionComponent

  

Returns the component that initiated the action.

TBasicAction.Execute

  

Triggers the OnExecute event

TBasicAction.onExecute

  

Event triggered when the action executes.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505