OnErrorExit()

Syntax

OnErrorExit()
Description
If an error occurs, a requester with a general error message will be showed and your program will be safely terminated.

Example:
  ; Please disable PB Debugger for testing, else the error will already
  ; be catched by the debugger!
  
  OnErrorExit()
  Null = 0
  Result = 123 / Null   ; division by 0 will generate an error
  
  ; The following code will never be executed, because of the error before
  MessageRequester("Information!", "This will never be executed!")

Supported OS

Windows

<- GoToEIP() - OnError Index - OnErrorGosub() ->