[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

halt

Stop program execution.

Declaration

Source position: systemh.inc line 1405

procedure halt(

  errnum: LongInt

);

procedure halt;

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

  

Exit current subroutine.

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.

Documentation generated on: Nov 16 2015