|
ERROR Statement |
Top Previous Next |
|
Stops the program in the debugger on the line where this statement occurs and displays the message defined by the expressions passed to the ERROR statement in the Debugger's message area. Similar to using a Breakpoint, but in this case the program will terminate rather than continue.
Syntax
ERROR [expression, expression,...]
expression An expression to be printed, separated by commas or semicolons
ERROR without any parameters displays a blank message.
The ERROR statement is useful for detecting unusual conditions that you don't believe should occur.
Example IF stopPrice < 0 THEN
ERROR "The stop price was negative ", stopPrice
ENDIF
See also: Test.AbortTest and Test.AbortAllTests Keywords: Stop, Break, Abort, Assert |