bas7advr.hlp (
Topic list)
SYSTEM Statement Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
SYSTEM closes all open files and returns control to the operating system.
SYSTEM [n%]
■ The value n% can be used by DOS or OS/2 batch files or by
non-BASIC programs. Untrapped errors and fatal errors set the value
of n% to -1.
Usage Notes
■ In a stand-alone program, SYSTEM returns to the operating system and
closes all files; in the QBX environment, SYSTEM stops program
execution and closes all files.
Important
■ A program containing a SYSTEM statement exits to the operating
system if run from the QBX command line with the /RUN option.
■ Entering a SYSTEM statement in the Immediate window terminates
BASIC.
Differences from BASICA
■ END and SYSTEM are distinct in BASICA but act identically in the
current version of BASIC.