+1 888 340 6572

RaiseRunTimeError: Difference between revisions

From MultiCharts
(Created page with "Generates a run-time error and displays the specified error message. A run-time error will cause the execution of the study to be aborted. ==== Usage ==== <syntaxhighligh...")
 
Line 9: Line 9:
   
   
==== Example ====
==== Example ====
<syntaxhighlight>Generate a run-time error and display the message "Strategy Stopped":  
Generate a run-time error and display the message "Strategy Stopped":  


RaiseRunTimeError("Strategy Stopped");</syntaxhighlight>  
<syntaxhighlight>RaiseRunTimeError("Strategy Stopped");</syntaxhighlight>  
   
   




[[Category:Execution Control]]
[[Category:Execution Control]]

Revision as of 13:44, 26 January 2012

Generates a run-time error and displays the specified error message.

A run-time error will cause the execution of the study to be aborted.

Usage

RaiseRunTimeError("Message")

Where: Message - a string expression specifying the error message

Example

Generate a run-time error and display the message "Strategy Stopped":

RaiseRunTimeError("Strategy Stopped");