bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.