GetMultiSelIndex Function (ListBox ListView TreeView)

Class

ListBox, ListView, and TreeView.

Action

Returns the index of each selected item in the multi-selection or extend-selection list box, list view, or tree view.

Availability

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

Syntax

liIndices = listbox.GetMultiSelIndex( )
Variable Description
liIndices The indices of each selected item in the list box. LIST OF INTEGER.

Notes

  • If no item is selected, GetMultiSelIndex returns an empty list.
  • The GetMultiSelIndex method is not available in the ListViewEx class, which is the equivalent of the ListView class on the Open Agent. To achieve the same functionality for a listview on the Open Agent, use the SelectedIndices property of the ListViewEx class.

Example

Verify(DialogBox1.Elements.GetMultiSelIndex(), {1, 3})