PreCommandExecute Event

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

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