WebPopupMenu.IndexOfRow

From Xojo Documentation

Method

WebPopupMenu.IndexOfRow(Value As String) As Integer

New in 2010r4

Supported for all project types and targets.

Returns the row number that contains the supplied Value. The row numbers are zero-based. If the string is not found, -1 is returned.

Example

This example gets the row number that matches the passed string.

Var i As Integer
i = PopupMenu1.IndexOfRow("Three")