1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 15:35:53 +00:00
QB64-PE/internal/help/EXIT.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

27 lines
1.1 KiB
Plaintext

The [[EXIT]] statement is used to exit certain Qbasic procedures.
{{PageSyntax}}
::EXIT {DO|WHILE|FOR|SUB|FUNCTION|DEF}
{{PageDescription}}
* EXIT leaves any of the following procedures immediately.
:* [[EXIT]] DO exits a [[DO...LOOP]] when called.
:* [[EXIT]] WHILE exits a [[WHILE...WEND]] loop when called.
:* [[EXIT]] FOR exits a [[FOR...NEXT]] counter loop when called.
:* [[EXIT]] SUB exits a [[SUB]] procedure before it ends. Use before any [[GOSUB]] procedures using [[RETURN]].
:* [[EXIT]] FUNCTION exits a [[FUNCTION]] procedure before it ends. The value passed by the function's name should be defined.
:* [[EXIT]] DEF exits a [[DEF FN]] function procedure before it ends. The value passed by the function's name should be defined.
* 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 &quot;Press any key to continue&quot;, use [[END]].
* To exit the program immediately you can use [[SYSTEM]].
{{PageSeeAlso}}
* [[_EXIT (function)]]
* [[END]], [[SYSTEM]]
* [[STOP]]
{{PageNavigation}}