EXIT

From QB64 Wiki
Jump to navigation Jump to search

The EXIT statement is used to exit certain QBasic procedures.


Syntax

EXIT {DO|WHILE|FOR|SUB|FUNCTION}


Description

  • EXIT leaves any of the following procedures immediately.
  • EXIT statements normally use an IF...THEN statement to evaluate a program condition that would require the EXIT.
  • To exit a program and allow the last program screen to be displayed with the message "Press any key to continue...", use END.
  • To exit the program immediately, use SYSTEM.


See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page