[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== How do I quit an application from a modeless window using script? (ViP Specific) ====
=== At 23 OCT 1997 12:05:18PM Ken Wachs wrote: ===
{{tag>"ViP Specific"}}
Dear ViP folks:
I am trying to get a script in the PUBLIC module to quit ViP once it has competed. I am calling the script from a button in a modeless window.
The problem I am having is that the script seems to stop completely once the modeless window has closed. The startup window (win_MainMenu) is left on the screen, and the application remains open.
How can I accomplish this? Any help would be appreciated.
Ken Wachs
----
=== At 23 OCT 1997 03:14PM John Averell Revelation wrote: ===
Have you tried executing this
AppHalt(0) or AppHalt(-1) ?
I'm not sure which will work best in your application, but this shuts the app down completely.
----
=== At 27 OCT 1997 03:22PM Ken Wachs wrote: ===
John:
Thanks very much for the response. I didn't know about the AppHalt function. I will try it out in my application.
Regards,
Ken Wachs
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=92C28B9A2FB0769D8525653900586042|View this thread on the forum...]]