Knowledgebase:
GetSubWindow
Posted by Mohammad Rahhal, Last modified by Angham Al-Banawien on 03 July 2018 02:59 PM

Syntax

Public Function GetSubWindow(chart_Id As Long, seriesName As String) As Long

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 Object Name , 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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions