GetNextChartId

Description

The GetNextChartId method retrieves the ID of the next chart in the sequence after the specified chart ID.

Syntax

public GetNextChartId(chartId: number): number

Parameters

  • chartId: A number representing the current chart ID

Return Value

Returns a number representing the ID of the next chart. Returns -1 if no more charts are available.

Example

let chartId = this.api.GetFirstChartId()
while (chartId !== -1) {
    console.log(`Processing chart ID: ${chartId}`)
    chartId = this.api.GetNextChartId(chartId)
}

Last updated