Name
Error -- exit with custom error message (V2.0)
Synopsis
Error(msg$)
Function
This function terminates the script and displays the message specified in msg$. This is useful if your script shall be aborted because an unexpected condition occurred.

Inputs
msg$
error message to show
Example
If Exists("Game.dat") = False Then Error("Cannot read game data!")
The code above checks for the file "Game.dat" and exits with an error message if it does not exist.

Show TOC