Difference between revisions of "MC TL GetActive"

From MultiCharts
Jump to navigation Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138)
m
Line 1: Line 1:
 
trendline ID number of the currently selected trendline; returns a value of -1 if no trendlines are currently selected.  
 
trendline ID number of the currently selected trendline; returns a value of -1 if no trendlines are currently selected.  
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>MC_TL_GetActive</syntaxhighlight>  
 
<syntaxhighlight>MC_TL_GetActive</syntaxhighlight>  
 
   
 
   
==== Notes ====  
+
== Notes ==  
A trendline-specific ID number is assigned by [[MC_TL_New]] when the trendline is created.  
+
* A trendline-specific ID number is assigned by [[MC_TL_New]] when the trendline is created.  
 
   
 
   
==== Example ====
+
== Example ==
Assign a value, indicating the trendline ID number of the currently selected trendline, to [[Value1]] variable:  
+
Assign a value, indicating the trendline ID number of the currently selected trendline, to the ''Value1'' variable:  
  
 
<syntaxhighlight>Value1 = MC_TL_GetActive;</syntaxhighlight>  
 
<syntaxhighlight>Value1 = MC_TL_GetActive;</syntaxhighlight>  
 
   
 
   
 
[[Category:Trendline Drawing]]
 
[[Category:Trendline Drawing]]

Revision as of 16:45, 8 March 2012

trendline ID number of the currently selected trendline; returns a value of -1 if no trendlines are currently selected.

Usage

MC_TL_GetActive

Notes

  • A trendline-specific ID number is assigned by MC_TL_New when the trendline is created.

Example

Assign a value, indicating the trendline ID number of the currently selected trendline, to the Value1 variable:

Value1 = MC_TL_GetActive;