<< Click to Display Table of Contents >>
AddItem |
AddItem([pvargItem], [pvargIndex])
This method is used to add items to a Combo. The pvargItem parameter is a String containing a text to add to a list. If omitted, an empty String is added. The pvargIndex parameter is the index of a text on a list. If omitted, the value of the pvargItem parameter is added as the last item on the list. The next script contains an example of using this method.
Sub CommandButton1_Click()
EntryCount = EntryCount + 1
ComboBox1.AddItem(EntryCount & " - Selection")
End Sub