KB-33788: Adding values to a ComboBox.

Question:

How can I add values to a ComboBox?

Solution:

To add values to a ComboBox, you must create a script using this object’s AddItem method. This method should preferably be used in a ComboBox’s OnStartRunning event.

Example of script:

Sub ComboBox1_OnStartRunning()
    Clear()
    AddItem "Item1"   
    AddItem "Item2"        
End Sub

 

 

NOTE: Item1 and Item2 are the values to be added to the ComboBox.
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *