Knowledgebase : Technical Support > API > Client API's/VTL > VTL Server Scripts > Methods
SYNTAX Public Function Bars(ByVal symbolId As String, ByVal period As ENUM_PERIOD) As Integer DESCRIPTION This function is used to return the number of candle for the specific symbol on period. PARAMETERS Parameter  Description symbolId ...
SYNTAX Public Function GetChartHistory(ByVal symbolId As String, ByVal period As ENUM_PERIOD, ByVal value As ENUM_HISTORY_TYPE,ByVal FromDate As String,ByVal toDate As String) As Object() DESCRIPTION This function is used to return the open , close , h...
An object that holds the open position data. PROPERTIES Constant Description BuySell [1] Define buy or sell ClosePrice Closing price Commission Commission value FloatingProfitLoss Profit loss value Interest ...
An object that holds the symbol data. PROPERTIES Constant Description Name [1] The symbol name as string. Read-only ID The symbol ID as string. Read-only Bid The Bid price as double. Read-only Ask The Ask price a...
SYNTAX Public Sub hide() DESCRIPTION This method is used to hide form. SAMPLE Dim frm as VTLGeneral.VTLForm 'Declaring a form Dim frm1 as VTLGeneral.VTLForm 'Declaring a form Dim btnHide as VTLGeneral.VTLControls.CChartObjectButton Dim btnShow as VTL...
SYNTAX Public Sub Show() DESCRIPTION This method is used to show form. SAMPLE  Public Sub main()         Dim frm As new VTLGeneral.VTLForm("frm1")         Dim lbl As new VTLGeneral.VTLControls.CChartObjectLabel("lb1")         frm.AddVTLControl(lbl...
SYNTAX Public Sub AddVTLControl(ByVal value As VTLControls.control) DESCRIPTION This method is used to add a control to form. PARAMETERS Parameter  Description value Control SAMPLE  Public Sub main()         Dim frm As new VTLGeneral....
DESCRIPTION An object that holds form data. PROPERTIES Constant  Description Text [http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1855] Get or set listView text Caption [http://www.hybrid-solutions.com/su...
DESCRIPTION An object that holds listView column data. PARAMETERS Parameter  Description Text [http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1855] Get or set list view item text Key Get or set item ke...
SYNTAX  Public Sub AddHeader(ByVal columns As List(Of ListViewcolumn)) DESCRIPTION An object that hold listView item data. PARAMETERS Parameter  Description  Text [http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/Vie...
SYNTAX  Public Sub RemoveItemByKey(ByVal value As List(Of VTLControls.ListViewItem)) DESCRIPTION To remove item base on item key. PARAMETERS Parameter  Description  columns List of ListViewItem [http://www.hybrid-solutions.com/support/in...
SYNTAX  Public Sub RemoveItemByIndex(ByVal value As List(Of VTLControls.ListViewItem)) DESCRIPTION To remove item base on index. PARAMETERS Parameter  Description value List of ListViewItem [http://www.hybrid-solutions.com/support/index....
SYNTAX Public Sub ClearListItems() DESCRIPTION This method is used to clear all items in list view. SAMPLE Dim colvalues as System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewcolumn) Dim colvalue as VTLGeneral.VTLControls.ListViewcolum...
SYNTAX Public Sub AddListItem(ByVal value As List(Of VTLControls.ListViewItem)) DESCRIPTION This method is used to add item in list view. PARAMETERS Parameter  Description value List of ListViewItem [http://www.hybrid-solutions.com/suppo...
SYNTAX Public Sub RemoveColumnByKey(ByVal columns As List(Of ListViewcolumn)) DESCRIPTION This method is used to remove the column base on column key. PARAMETERS Parameter  Description columns List of ListViewColumn [http://www.hybrid-so...
SYNTAX Public Sub RemoveColumnByIndex(ByVal columns As List(Of ListViewcolumn)) DESCRIPTION This method is used to remove column base on index . PARAMETERS Parameter  Description columns List of ListViewcolumn [http://www.hybrid-solution...
SYNTAX Public Sub ClearColumns() DESCRIPTION This method is used to clear all items in list view. SAMPLE  Dim colvalues as System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewcolumn)  Dim colvalue as VTLGeneral.VTLControls.ListViewcolum...
SYNTAX Public Sub AddHeader(ByVal columns As List(Of ListViewcolumn)) DESCRIPTION This method is used to add a list of columns. PARAMETERS Parameter  Description columns List of ListViewcolumn [http://www.hybrid-solutions.com/support/ind...
DESCRIPTION An object that will hold listView data. PROPERTIES Constant  Description Text [http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1855] Get or set listView Text Caption [http://www.hybrid-solution...
DESCRIPTION To remove the item from combo box control, this function overloads 2 variants like the following :  Public Overloads Sub RemoveItem(ByVal index As Integer)Public  Public Overloads Sub RemoveItem(ByVal values As List(Of Integer)) PARAMETERS...
SYNTAX  Public Sub Refresh() DESCRIPTION Refresh the data in combox control. SAMPLE  Public Sub main()         Dim combox As new VTLGeneral.VTLControls.CChartObjectCombo("com1")         combox.AddItem("text1")         combox.Refresh()   End Sub ...
SYNTAX Public Sub Clear() DESCRIPTION This method is used to clear all data in combox control. SAMPLE  Dim frm as VTLGeneral.VTLForm  Dim combox as VTLGeneral.VTLControls.CChartObjectCombo  Public Sub main()       frm = New VTLGeneral.VTLForm("frm1...
DESCRIPTION To add an item to combo box control, this function overloads 2  variants like the following:  Public Overloads Sub AddItem(ByVal item As String)  Public Overloads Sub AddItem(ByVal values As List(Of String)) PARAMETERS Parameter  De...
Help Desk Software by Hybrid Solutions