PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Miscellaneous

ScriptError

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."
EndIf

The above script fragment generates an error if a timeout has occurred.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.