MultiSelect Method (ListBox)

Class

ListBox class.

Action

Selects an item in the multi- or extend-selection list box.

Syntax

listbox.MultiSelect (Item)
Variable Description
Item The item to select. LISTITEM.

Notes

If the item is not selected, MultiSelect selects the item by scrolling it into view and clicking it with the mouse. If the item is already selected, MultiSelect does nothing.

For information on specifying Item, see the ListBox class.

After calling MultiSelect, Silk Test Classic checks whether the item was selected, and raises the exception E_CONTROL_NOT_RESPONDING if it was not.

You cannot use this method with single-selection lists.

Example

DialogBox1.Elements.MultiSelect ("water")
DialogBox1.Elements.MultiSelect (5)