SetErrorNumber()

Syntax

SetErrorNumber(Number)
Description
You can forcibly fire an error. For example if you did not find a file, fire an error number 54 and let the error handler show the error. The debugger must be disabled when using this command.

Example:
  Procedure ErrorHandler()
    MessageRequester("","Error "+Str(GetErrorNumber()))
    End
  EndProcedure

  OnErrorGosub(@ErrorHandler())
  SetErrorNumber(54)

Supported OS

Windows

<- OnErrorResume() - OnError Index