Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Forum
  • Home
  • Knowledgebase
  • Blog
  • Forum

Methods

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Server Scripts/Methods/ClearColumns

ClearColumns

0 views 0 December 16, 2021 hybrid-solutions

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.ListViewcolumn Dim lst as VTLGeneral.VTLControls.VTLListView Dim frm as VTLGeneral.VTLForm Dim itemvalues as New System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewItem) Dim itemvalue as VTLGeneral.VTLControls.ListViewItem Public Sub main()        lst = New VTLGeneral.VTLControls.VTLListView("lst1")        frm = New VTLGeneral.VTLForm("frm1")        frm.AddVTLControl(lst)        lst.Height = "2000"        lst.width = "2000"        Dim btn as VTLGeneral.VTLControls.CChartObjectButton        btn = New VTLGeneral.VTLControls.CChartObjectButton("btn1")        frm.AddVTLControl(btn)        btn.caption = "Clear"        colvalues = New System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewcolumn)        colvalue = New VTLGeneral.VTLControls.ListViewcolumn        colvalue.Text = "Col1"        colvalue.Key = "Col1"        colvalue.Index = cstr(1)        colvalues.add(colvalue)        lst.AddHeader(colvalues)        colvalues.clear()        colvalues = New System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewcolumn)        colvalue = New VTLGeneral.VTLControls.ListViewcolumn        colvalue.Text = "Col2"        colvalue.Key = "Col2"        colvalue.Index = cstr(2)        colvalues.add(colvalue)        lst.AddHeader(colvalues)        colvalues.clear()        frm.show()        itemvalue = New VTLGeneral.VTLControls.ListViewItem        itemvalue.Text = "Data"        itemvalue.Key = "S"         itemvalue.Index = CSTR(1)        itemvalue.AddSubItem("info1")        itemvalues.add(itemvalue)        lst.AddListItem(itemvalues) End Sub Public Sub frm1_btn1_click()        colvalues = New System.Collections.Generic.List(Of VTLGeneral.VTLControls.ListViewcolumn)        colvalue = New VTLGeneral.VTLControls.ListViewcolumn        colvalues.clear()        lst.ClearListItems()End Sub

See Also

  • RemoveColumnByIndex
  • RemoveColumnByKey
  • AddListItem


Back to VTL Server Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Technical Support
  • Social Trading
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Forum
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2022 hybridsolutions.com. All Rights Reserved.