+1 888 340 6572

Array GetMaxIndex: Difference between revisions

From MultiCharts
(Created page with "Returns a numerical value indicating the maximum index of a one-dimensional array. Array indexes start at 0, and array size is equal to the value of the maximum index plus on...")
 
No edit summary
 
Line 2: Line 2:
Array indexes start at 0, and array size is equal to the value of the maximum index plus one.  
Array indexes start at 0, and array size is equal to the value of the maximum index plus one.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>Array_GetMaxIndex(ArrayName)</syntaxhighlight>  
<syntaxhighlight>Array_GetMaxIndex(ArrayName)</syntaxhighlight>  


Where: [[ArrayName]] - an expression specifying the name of an array  
Where:  
:'''ArrayName''' - an expression specifying the name of an array  
   
   
==== Example ====
== Example ==
Assign a value that indicates the maximum index of Array1 to the MaxIndex variable:  
Assign a value that indicates the maximum index of Array1 to the MaxIndex variable:  



Latest revision as of 21:26, 27 February 2017

Returns a numerical value indicating the maximum index of a one-dimensional array. Array indexes start at 0, and array size is equal to the value of the maximum index plus one.

Usage

Array_GetMaxIndex(ArrayName)

Where:

ArrayName - an expression specifying the name of an array

Example

Assign a value that indicates the maximum index of Array1 to the MaxIndex variable:

MaxIndex=Array_GetMaxIndex(Array1);