|
<< Click to Display Table of Contents >>
AddItem |
AddItem([pvargItem], [pvargIndex])
This method is used to add items to this object. The pvargItem parameter is a String containing a text to add to the list. If omitted, an empty String is added. The pvargIndex parameter is the index of a text on the 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