Next: , Previous: GTPad, Up: Reference



Halt

Synopsis

     Halt;

or

     Halt (ExitCode: Integer);

Description

Halt terminates the program with exitcode 0. If ExitCode, is specified, it is returned by Halt on exit.

Conforming to

Halt is an Extended Pascal and a UCSD Pascal extension.

Example

     program HaltDemo;
     begin
       WriteLn ('This string will always be this program''s output.');
       Halt;  { Terminate right here and right now. }
       WriteLn ('And this string won''t ever!')
     end.

See also

Break, Continue, Exit, Return, goto.