TreeView.
Returns the index of the selected item, relative to all visible items.
iIndex = treeview.GetSelIndex()
Variable | Description |
---|---|
iIndex | The index of the selected item in the control. INTEGER. |
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.
Verify(MyDialog.MyTreeView.GetSelIndex(), 4)