|NI TestStand 2014 Help|
|NI TestStand 2014 SP1 Help|
|TestStand 2016 Help|
|TestStand 2016 SP1 Help|
|TestStand 2017 Help|
ControlName_PreCommandExecute ( command, cancel)
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.
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.