×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Array SetMaxIndex

5 bytes removed, 21:29, 27 February 2017
no edit summary
An array can be resized to a larger or to a smaller number of elements; any elements added to an array will be assigned the initial value that was specified at array declaration.
==== Usage ====
<syntaxhighlight>Array_SetMaxIndex(ArrayName,MaxIndex)</syntaxhighlight>
Where: [[:'''ArrayName]] ''' - an expression specifying the name of an array to be resized
[[:'''MaxIndex]] ''' - a numerical expression specifying the maximum index of the array*
[[*]]Array indexes start at 0, and array size is equal to the value of MaxIndex plus one.
==== Return ====
[[True]] - resize sucessfull
[[False]] - resize failed
==== Example ====
Resize the dynamic array Array1 to 10 elements by specifying a maximum index value of 9:

Navigation menu