GetSelIndex Function (TreeView)

Class

TreeView.

Action

Returns the index of the selected item, relative to all visible items.

Syntax

iIndex = treeview.GetSelIndex()
Variable Description
iIndex The index of the selected item in the control. INTEGER.

Notes

GetSelIndex returns the global index of the selected item in the treeview. If no item is selected, the return value is zero (0). The value of the returned index for an item depends on how many collapsed items are above it in the treeview.

Example

Verify(MyDialog.MyTreeView.GetSelIndex(), 4)