SelectList Method (TreeView)

Class

TreeView.

Action

Selects a group of contiguous items from the treeview.

Availability

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

Syntax

treeview.SelectList (lItems)
Variable Description
lItems The items to select. LIST OF STRING or LIST OF INTEGER.

Notes

SelectList selects a set of items in a multiple-selection treeview by taking the following steps:

  1. Unselects all selected items.
  2. Selects the first item in the list.
  3. Multi-selects (by Ctrl+clicking) all other items in the list.

For information on specifying lItems, see the TreeView class.

Example

MyDialog.MyTreeView.MultiSelectList ({1, 3, 5, 7, 9})