Syntax
ScriptError "<text>"Description
Generate an error that will result in a popup error dialog.Parameters
"<text>"
- The text describing the error condition.
Remarks
If error popups are enabled (see SetPhantom ErrorPopupsOn), then the text supplied will be displayed in a dialog box and the user given the option of terminating the script or ignoring the error and continuing. In any case, the error text is written to the log and trace file and replaces the contents of the LastError intrinsic variable.Example
If TimedOut Then
ScriptError "A timeout has occurred."
EndIfThe above script fragment generates an error if a timeout has occurred.