Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

RunError

Generate a run-time error.

Declaration

Source position: systemh.inc line 1720

procedure RunError(

  w: Word

);

procedure RunError;

Description

Runerror stops the execution of the program, and generates a run-time error ErrorCode.

Errors

None.

See also

Exit

  

Exit current subroutine.

Halt

  

Stop program execution.

Example

Program Example55;

{ Program to demonstrate the RunError function. }

begin
  { The program will stop end emit a run-error 106 }
  RunError (106);
end.

Documentation generated on: Oct 02 2024