Syntax
Public Function GetSubWindow(chart_Id As Long, seriesName As String) As Long
Description
This function is used to get the index of the window (panel) where the object was added.The returned index must exceed or equal 0.
Parameters
Key | Description |
chart_id | Chart identifier, 0 is the current chart ,value of type Long |
seriesName | ObjectName , value of type String. |
Return value
If the function fails, the returned value will be -1 .To get the detailed error information, call GetLastError().
Sample
Public Sub main() Dim vchartName Dim highArry() Dim vchartId Dim indKey vchartId =chartId vchartName =ChartSymbol(Clng(vchartId)) CopyHigh 0,1, bars(0),highArry indKey = AddCustomIndicator(0, highArry,0 , true ) AlertMessage(GetSubWindow(0,cstr(indKey))) '' to get panel number End Sub
See Also