FindItem Method (JList)

Class

JList class

Action

Returns the index of an item in the list.

Syntax

result = list.FindItem(itemText)
Variable Description
result The index of the first matching item or -1 (4Test: 0) if no item was not found. The value is one-based. INTEGER.
itemText The item to find. STRING.

Examples

INTEGER iIndex = ColorsList.FindItem("green")