next up previous contents index
Next: Hi Up: Functions and Procedures Previous: Getmem

Halt

   

Declaration:

Procedure Halt [(Errnum : byte] ;

Description:

Halt stops program execution and returns control to the calling program. The optional argument Errnum specifies an exit value. If omitted, zero is returned.

Errors:

None.

See also:

Exit

Example
Program Example30;

{ Program to demonstrate the Halt function. }

begin
 Writeln ('Before Halt.');
 Halt (1); { Stop with exit code 1 }
 Writeln ('After Halt doesn''t get executed.');
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998