GetItems Function (ComboBox ListBox RadioList )

Class

ComboBox class, ListBox class, and RadioList class.

Action

Returns all items in the combo box, listbox, or radiolist.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

list = object.GetItems()
Variable Description
list The list containing all items of the list box, combo box, or radio list. LIST OF LISTITEM.

Example

For example, to verify that the Combobox Combobox1 has an item without a text, but with the index 1, and two additional items with the text "b" and "c", you can use the following code:
[ ] LIST OF LISTITEM actual = Combobox1.GetItems()
[ ] 
[ ] Verify(actual, {1, "b", "c"})