onAppStopBegin - event of object PmRoot

The event fires after the command for halting the application.
pMe(Object) Reference to the Promotic object where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.Error - (Long) If the value of the parameter is 0, the application is stopped by the user (designer) command - i.e. by calling the method Pm.AppStop or Pm.AppQuit. Otherwise (the value is no-zero), the application is stopped from the failure cause of some component (e.g. ActiveX element, etc.).
After the event Promotic objects are deleted sequentially (onStop events of the objects are fired) and finally the onAppStopEnd event fires.
Application termination can be disabled by PmRoot > Permissions > AppStop.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice