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

series

 

the series

 

 

 

returns

 

the size of the series

 

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