KB-33241: Values in a ComboBox.

Question:

How can I tell which values are loaded in a ComboBox?

Solution:

To do so, you must use ComboBox’s ListCount property to find out the number of items, and List property to display each item.

Sample script being executed in a button:


If Screen.Item(“ComboBox2”).ListCount <> 0 Then
    For aux = 0 To Screen.Item(“ComboBox2”).ListCount-1
        MsgBox Screen.Item(“ComboBox2”).List(aux)
    Next
End If

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 *