Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AppStop - method of the Pm object

Description:
Termination of the application.
Syntax:
Empty AppStop(Variant nMode)
Parameters:
nMode(Variant) Type of termination
0 (default) - termination of the application including the contingent confirmation window
1 - termination of the application 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.
See also:
- Pm.ShutDown (method)
Example1:
JavaScriptVBScriptSelect and copy to clipboard

Pm.AppStop(0);
Example2:
Termination and new starting of 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/Pm9001600/Bin32/PromoticRt32.exe /p=" + Pm.AppFullName + ".pra", "", 1);
Pm.AppStop(1);
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- AppStop
 
 
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice