forlang.hlp (Table of Contents; 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.
STOP
                                             Up Contents Index Back
─────STOP───────────────────────────────────────────────────────────────────
 
     Action
 
     Terminates program execution.
 
     Syntax
 
     STOP [message]
 
     Parameter          Description
 
     message            A character constant or integer from 0 to 99,999
 
     Remarks
 
     If <message> is not specified, STOP displays:
 
     STOP - Program terminated.
 
     If <message> is a character constant, it is displayed. The program
     returns zero to the operating system.
 
     If <message> is a number:
 
       1. The words 'Return code' and the number are displayed.
 
       2. The program returns the least-significant byte of that
          integer value to the operating system.
 
     Example
 
           IF (ierror .EQ. 0) GOTO 200
           STOP 'ERROR DETECTED!'
       200 CONTINUE
                                    -♦-