SelectedList (Collection)

Member of:

ControlsListBox object

Description:

Represents all selected list box items.

Tip:

All collections have a “Item(NameOrIndex)” method. This is the default method for all collections that returns collection items from a particular index or with a specific name. Use brackets ([]) to represent calls to the Item (Method). For example, these statements are identical: myItem = Documents[1] myItem = Documents.Item(1) myItem = Documents["StartUp.bqy"] myItem = Documents.Item("StartUp.bqy")

Example:

This example shows how count the number of selected items in a list box.

Alert(ListBox1.SelectedList.Count)

Methods:

String Item(Number nIndex), Number ItemIndex(Number nIndex)

Properties:

Read-only: Property Count As Number

Objects:

SelectedList object