ApplicationMgr.PreCommandExecute
- Updated2025-07-21
- 1 minute(s) read
ApplicationMgr.PreCommandExecute
Syntax
ControlName_PreCommandExecute( command, cancel)
Applies To
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.