1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-20 22:05:15 +00:00
qb64/internal/help/SYSTEM.txt
Luke Ceddia b586eafd3b Integrated _BLINEINPUT into regular LINE INPUT for BINARY files
LINE INPUT will now use the faster method if passed a file handle
that has been opened FOR BINARY. As such, the _BLINEINPUT command
has been removed.

qb64.bas now takes advantage of this for reading from '$include files,
at least in Include Manager 1. Some tweaking of internal/source/main.txt
was required to get things into a sane state, so I'm holing off changing
the compiler any further so the auto-builder can make sure everything's
smoothed over.

Note: Everything should still compile as normal; I'm just being overcautious.
2014-07-27 00:06:17 +10:00

27 lines
1.2 KiB
Plaintext

The {{KW|SYSTEM}} statement immediately closes a program and in DOS and can avoid returning to the QBasic [[IDE]].
{{PageSyntax}}
:'''SYSTEM''' [return_code%]
{{Parameters}}
* QB64 allows a ''code'' number to be used after SYSTEM to be read in another program module by the [[SHELL]] or [[_SHELLHIDE]] functions.
''Usage:''
* 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.
* 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]].
* In '''QB64''' SYSTEM ends the program and closes the window immediately. The last screen image may not be displayed.
* '''Qbasic BAS files can be run like compiled programs without returning to the [[IDE]] when [[SYSTEM]] is used to [[END|end]] them!'''
* 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]]
{{PageNavigation}}