PreCommandExecute Event

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

ControlName_PreCommandExecute ( command, cancel)

Applies To

ApplicationMgr

Purpose

Occurs when a caller invokes the Command.Execute method. When you return False through the cancel parameter, the Command.Execute method does not perform an action and the ApplicationMgr.PostCommandExecute event does not occur.

Parameters

command As Command

[In] Specifies the command about to execute.

cancel As Boolean

[In/Out] Set this parameter to False to prevent the command from executing. When you cancel the command execution, you do not receive an ApplicationMgr.PostCommandExecute event.


See Also

ApplicationMgr.PostCommandExecute

Command.Execute

WAS THIS ARTICLE HELPFUL?

Not Helpful