Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> halt terminate program execution pp 135</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 HALT                    Terminate Program Execution                  pp 135

 Syntax:  Halt (ReturnCode) ;

 Type:    Integer

 Form:    Procedure

 Purpose: Terminate and return to DOS with return code.

 Notes:   ReturnCode is optional.  If none is specified, 0 is returned.


 ----------------------------------------------------------------------------


 Usage:
       BEGIN
          Halt (1) ;    { Set DOS ErrorLevel = 1 and terminate }
       END.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson