The ERROR statement is useful for detecting unusual conditions that you don't believe should occur. 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 without any parameters displays a blank message. ERROR [expression, expression,...] |
Parameter: |
Description: |
---|---|
expression |
An expression to be printed, separated by commas or semicolons. |
Example: |
---|
' When the stopPrice is less than zero,... |
Returns: |
The stop price was negative: -107.87 |
Links: |
---|
See Also: |
Edit Time: 9/20/2020 2:00:55 PM |
Topic ID#: 306 |