Knowledgebase : Technical Support > API > Client API's/VTL > VTL Client Scripts > Object Functions
SYNTAX Public Function ObjectGetPointByValue(chart_index As Integer, name As String, value As Double) As Integer DESCRIPTION This function is used to object point which has the specific price value. PARAMETERS Key Description  chart_index ...
SYNTAX Public Function ObjectGet(chart_ID As Long, name As String, prop_Id As Integer)As Variant DESCRIPTION This function is used to get the values of the specified object property by a given object name. PARAMETERS Key Description  chart_...
SYNTAX Public Function ObjectSet(chart_id As Long, name As String, prop_Id As Integer, prop_Value As Variant)As Boolean DESCRIPTION This function is used to change the values of the specified object property by a given the property id and it's value. ...
SYNTAX Public Function ObjectGetValueByPoint(chart_ID As Long, Name As String, point As Integer)As Double This function is used to return the prices value of the specified object by a given the object point. PARAMETERS Key Description  chart...
SYNTAX Public Function ObjectGetTimeByPoint(chart_ID As Long, Name As String ,Point As Integer)As String DESCRIPTION This function is used to return the time value of the specified object by a given the point. PARAMETERS Key Description  ch...
SYNTAX Public Function ObjectSeriesSetValue(chart_ID As Long, SeriesName As String, recordNumber As Long, NewValue As Double)As Boolean DESCRIPTION This function is used to set the value for specific series in the chart. PARAMETERS Key Descript...
SYNTAX Public Function ObjectSeriesGetValue(chart_ID As Long, SeriesName As String, recordNumber As Long, ByRef Value As Variant)As Boolean DESCRIPTION This function is used to get the value of specific series in the chart by a given the series name. ...
SYNTAX Public Function ObjectType(chart_Id As Long, name As String) As Integer DESCRIPTION This function is used to return one of the ENUM_OBJECT [http://www.hybridsolutions.com/support/index.php?/Knowledgebase/Article/View/2610] value as the object ty...
SYNTAX Public Function ObjectMove(chart_Id As Long, name As String, point As Integer, time1 As String, Price1 As Double) As Boolean DESCRIPTION This function is used to move an object in the chart by a given the coordinates PARAMETERS Key Descr...
SYNTAX Public Function ObjectLabelMove(chart_Id As Long, name As String, XPos As Integer, YPos As Integer) As Boolean DESCRIPTION This function is used to move a label object in the chart by a given the coordinates. PARAMETERS Key Description ...
 SYNTAX Public Function objectTotal(chart_Id As Long, typeObj As ENUM_OBJECT) As Integer DESCRIPTION This function Returns the total number of a specific object in the chart by a given object type. PARAMETERS Key Description chart_Id Cha...
SYNTAX Public Function objectFind(chart_Id As Long, name As String) As Integer DESCRIPTION This function is used to return object ID by a given object name on the chart. PARAMETERS Key Description chart_Id Chart identifier. 0 mean the cu...
SYNTAX Public Function ObjectDeleteAll(chart_Id As Long) As Boolean DESCRIPTION This function removes all objects from the specified chart. PARAMETERS Key Description chart_Id Chart identifier. 0 mean the current chart, the value of type...
SYNTAX Public Function ObjectDelete(chart_Id As Long, name As String) As Boolean DESCRIPTION This function is used to remove the object from the specified chart by a given object name. PARAMETERS Key Description chart_Id Chart identifier...
SYNTAX Public Function ObjectName(chart_Id As Long, pos As Integer) As String DESCRIPTION This function returns the name of the object by a given it ordinal in the specified chart. PARAMETERS Key Description chart_Id Chart identifier. 0 ...
SYNTAX Public Function DeletePriceLabel(chart_Id As Long, name As String) As Boolean DESCRIPTION This function deletes the price label object by a given object  name. PARAMETERS Key Description chart_Id Chart identifier. 0 mean the curre...
SYNTAX Public Function SetPricelabel(chart_Id As Long, name As String, prop_Id As ENUM_PRICE_LABEL, prop_value As Variant) As Boolean DESCRIPTION This function is used to set the property such as font size, position, font color ..etc for price label ob...
SYNTAX Public Function ObjectSetText(chartID As Long, name As String, font_Size As Integer, Optional font As String = "", Optional text_color As Long = 0) As Boolean DESCRIPTION This function is used to change the text property for the text object and ...
SYNTAX Public Function CreateObjectLabel(chart_ID As Long, nwin As Long, name As String, XPos As Long, YPos As Long, text As String) As Boolean DESCRIPTION This function is used to create a label object on the chart at a specific position. PARAMETERS ...
SYNTAX Public Function AddPricelabel(chart_Id As Long, nwin As Long, price As Double, name As String) As Boolean DESCRIPTION This function is used to create a price label object at specified price coordinate. PARAMETERS Key Description char...
SYNTAX Public Function ObjectBitMap(chart_ID As Long, win As Long, name As String, price1 As Double, time1 As String, fileName As String, text As String) As Boolean DESCRIPTION This function is used to add Bit map photo to chart with the specified name...
SYNTAX Public Function AddObject (chart_id As Long, name As String, objType As ENUM_OBJECT, nwin As Long, time1 As String, price1 As Double, Optional time2 As String = "0", Optional price2 As Double = 0,Optional vColor As Long=0,Optional vWieght As Integ...
Help Desk Software by Hybrid Solutions