AppStop - method of the Pm object
Description:
Termination of the application.
Syntax:
Empty AppStop(Variant nMode)
Parameters:
| nMode | (Variant) Type of termination
0 (default) - Application stopping including the contingent confirmation window.
1 - Application stopping without the contingent confirmation window (guaranteed termination of the application). |
|---|
Note:
Termination of the running application of the PROMOTIC system.
By calling this method, the
PmaRoot.onAppStopBegin event is triggered.
The method is executed only if the "
PmaRoot > Permissions > AppStop" permission is fullfiled.
This method is also functional in
Web panels. But only for
InternetExplorer (is not functional for
Chrome,
Firefox,
Edge ...) The method closes the Web browser.
Example1:
JavaScriptVBScriptSelect and copy to clipboard
Pm.AppStop(0);
Pm.AppStop 0
Example2:
Termination and new launching the running application (the self) by the utility
RunLater:
JavaScriptVBScriptSelect and copy to clipboard
Pm.ShellExecute("", "c:/Promotic/Tools/RunLater/RunLater", "/t=10 /f=C:/Promotic/Pm90033/Bin32/PromoticRt32.exe /p=" + Pm.AppFullName + ".pra", "", 1);
Pm.AppStop(1);
Pm.ShellExecute("", "c:/Promotic/Tools/RunLater/RunLater", "/t=10 /f=C:/Promotic/Pm90033/Bin32/PromoticRt32.exe /p=" & Pm.AppFullName & ".pra", "", 1)
Pm.AppStop 1