WebPopupMenu.ListCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aWebPopupMenu.ListCount

New in 2010r4

Supported for all project types and targets.

Used to get the number of items in the list.

Example

Find an item in a PopupMenu by name and select it:

Var findValue As String = "Three"
For i As Integer = 0 To PopupMenu1.ListCount - 1
If PopupMenu1.List(i) = findValue Then
PopupMenu1.ListIndex = i
Exit For
End If
Next