TreeView.
Returns the index of a named item.
iIndex = treeview.FindItem(sItem)
Variable | Description |
---|---|
iIndex | The index (relative to all viewable items) of the item, or 0 if not found. INTEGER. |
sItem | The item to find. STRING. |
FindItem returns the global index of a treeview item specified by path. The returned index is the flat index of the item, as if the treeview were a simple list box. As with all treeview functions, the index is relative to the items which are currently viewable (that is, those that have no collapsed ancestors).
For information on specifying sItem, see the TreeView class.
index = MyDialog.MyTreeView.FindItem("/root/child/grandchild")