EXIT (function)

From QB64 Wiki
Revision as of 03:45, 1 January 2010 by imported>Clippy (Created page with 'The '''_EXIT''' function indicates if a program user has used the close X button or CTRL + BREAK. * Once the function is called, the program user can no longer manually exit t…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _EXIT function indicates if a program user has used the close X button or CTRL + BREAK.


  • Once the function is called, the program user can no longer manually exit the program.
  • _EXIT returns:
0 - no exit request made
1 - exit attempted by clicking the window X (close) box since last function call
2 - exit attempted with CTRL + BREAK since last call
3 - both CTRL+BREAK and the X box have been used since last call
  • The program can later handle an exit request at a more convenient time