1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 07:41:21 +00:00
qb64/internal/help/SYSTEM.txt

32 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-02-16 01:13:07 +00:00
The [[SYSTEM]] statement immediately closes a program and returns control to the operating system.
{{PageSyntax}}
:'''SYSTEM''' [return_code%]
2021-02-18 17:11:22 +00:00
{{PageParameters}}
* QB64 allows a ''code'' number to be used after SYSTEM to be read in another program module by the [[SHELL]] or [[_SHELLHIDE]] functions.
2021-02-11 11:41:53 +00:00
{{PageDescription}}
* This command should be used to close a program quickly instead of pausing with [[END]] or nothing at all.
* A code can be added after the statement to send a value to the [[SHELL (function)]] or [[_SHELLHIDE]] function in another module.
2017-10-10 14:55:21 +00:00
* SYSTEM ends the program and closes the window immediately. The last screen image may not be displayed.
2021-02-16 01:13:07 +00:00
{{PageQBasic}}
2021-02-11 11:41:53 +00:00
* '''QBasic BAS files can be run like compiled programs without returning to the IDE when [[SYSTEM]] is used to [[END|end]] them!'''
2021-01-04 18:45:32 +00:00
* If a program BAS module is run from the IDE, stopped by Ctrl-Break or an error occurs the QB program will exit to the IDE.
2021-02-11 11:41:53 +00:00
* To run a QuickBASIC program without the IDE use the following DOS command line: {{text|QB.EXE /L /RUN filename.BAS|green}}
{{PageSeeAlso}}
* [[SHELL (function)]]
* [[_SHELLHIDE]] {{text|(function)}}
* [[_EXIT (function)]], [[END]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}