|Download Help (Windows Only)|
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.