Syntax
Public Function GetChartIDByIndex(Index As Integer) As Long
Description
This function is used to get the chart identifier to the given chart index.
Parameters
Key | Description |
Index | Thechart position on the chart windows, value of type Integer |
Return value
Returnschart id as value of type long, In order to get -1, call GetLastError()function.
Sample
Public Sub main() Dim Chart_ID Chart_ID = GetChartIDByIndex(2) AlertMessage Chart_ID End Sub
See Also