Add Item
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 07 December 2018 07:24 PM

To add an item to combo box control, this function overloads 2  variants like the following:


Public Overloads Sub AddItem(ByVal item As String)



  1.   

Public Overloads Sub AddItem(ByVal values As List(Of String))

Parameters

Parameter  Description
item Item as string
values Items as list

Note
We recommended using the second overloads method for better performance.

Sample

Public Sub main()

        Dim com As new VTLGeneral.VTLControls.CChartObjectCombo("com1")

        Dim frm As new VTLGeneral.VTLForm("form1")

        Dim  lbl As VTLGeneral.VTLControls.CChartObjectLabel

        Dim com2 As new VTLGeneral.VTLControls.CChartObjectCombo("com2")

        lbl= new VTLGeneral.VTLControls.CChartObjectLabel("b1")

        Dim btn As VTLGeneral.VTLControls.CChartObjectButton

        btn= new VTLGeneral.VTLControls.CChartObjectButton("btn1")

        frm.AddVTLControl(lbl)

        frm.AddVTLControl(btn)

        frm.AddVTLControl(com)

        frm.AddVTLControl(com2)

        frm.show()

        frm.Width = "8130"

        btn.Width = "5100"

        com2.Top = "2160"

        com2.Left = "3240"

        com.AddItem("text1")

        com.AddItem("text2")

        com.AddItem("text3")

End Sub


See Also


Back to VTL Server 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