|
GetSeriesSize |
Top Previous Next |
|
Get the current size of the series. Used with Non Auto Indexed Series to find the size when assigning values. If the series is too small, increase with SetSeriesSize.
Syntax
seriesSize = GetSeriesSize( series )
Parameters
Example VARIABLES: seriesSize TYPE: integer
' Get the current size. seriesSize = GetSeriesSize( instrument.myCustomSeries )
' If we have enough space, then set the value. IF index < seriesSize THEN instrument.myCustomSeries[ index ] = someNumber ELSE ERROR "The index is too large for the series myCustomSeries" ENDIF
|