|
SetSeriesSize |
Top Previous Next |
|
Sets the series size. Used to increase or decrease the size of a Non Auto Indexed series. The values currently in the series are retained, and the new elements (if bigger) are set to the default value.
Syntax
SetSeriesSize( series, newSize )
Parameters
Example VARIABLES: seriesSize TYPE: integer
' Get the current series size. seriesSize = GetSeriesSize( instrument.myCustomSeries )
' If we don't have enough space, then resize. ' Make bigger than necessary so we don't have to do this every time. IF index > seriesSize THEN SetSeriesSize( instrument.myCustomSeries, index + 10 ) ENDIF
' Set the value into the series. instrument.myCustomSeries[ index ] = someNumber
|