1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/STOP.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

32 lines
1.1 KiB
Plaintext

The '''STOP''' statement is used to stop program execution when troubleshooting a program or to suspend event trapping.
{{PageSyntax}}
:: STOP
* STOP used in the Qbasic IDE does not close any files or go to the operating system. It returns to the IDE.
* In the QB64 compiler, STOP closes the program window and returns to the [[IDE]] when the code is compiled from there.
* STOP is ONLY used for debugging purposes and should not be used to exit programs!
* STOP can also be used to suspend an event trap in the following statements: [[KEY(n)]], [[ON COM (n)|COM(n)]], [[PEN]], [[PLAY]], [[STRIG(n)]], [[TIMER]], [[UEVENT]]. The trap can be turned back on with [[ON]] and returns any trap events since '''STOP''' was used.
''Example:'' When run in the Qbasic IDE, the program will return to the IDE at STOP. Press F5 to finish the program.
{{CodeStart}}
{{Cl|PRINT}} &quot;start&quot;
{{Cl|SLEEP}} 3
{{Cl|STOP}}
{{Cl|PRINT}} &quot;resumed&quot;
{{CodeEnd}}
: ''Explanation:'' QB64 will STOP the program and close the window as it does not have an interpreter to run the rest of the code.
''See also:''
* [[END]], [[SYSTEM]]
* [[ON]], [[OFF]]
{{PageNavigation}}