ItemIdentifier Data Type

Description

Specifies an item in controls such as list boxes, tab controls, or combo boxes. Items can be identified by the following:
  • Text (String).
  • Index (Integer).
  • A combination of text and index (String).

A string value specifies the name of the item. The string can contain wildcard characters. You can also specify the index of the item as a string, in the form "[n]", where n is the numerical index of the item.

Example

The following examples show how you can select an item in a ListBox:
listbox.select(0)  ' Selects the first item, which has the index 0. 
listbox.select("[0]")  ' Also selects the first item. 
listbox.select("apple")   ' Selects the first item with text "apple".
listbox.select("apple[1]")   'Selects the second item with the text "apple".