Sign in Join
FPDoc Onlineexperiment

RunError procedure

In unit System

Generate a run-time error.

Declaration

pascal
procedure RunError(w: Word)

Description

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

Errors

None.

See also

Example: ex55

pascal
Program Example55;

{ Program to demonstrate the RunError function. }

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.