General information
Category:
Coding, syntax & commands
>Hello
>
>I need a quick way to find an item in a treeview control? The listview control has the FindItem() method. But treeview is lacking this method. Do I need to traverse the entire tree to find the item I am looking for ? I hope not...
>
>Thanks
You can use the .Key property of a Node to locate it and then create a reference for it. Plus, some events either pass a node reference as an object or insert an object reference into one. The .SelectedItem property I believe holds a reference to the node just clicked on.
You may need to keep an array or cursor which contains the equivalent of the .Key property. THISFORM.oleTree.Nodes(lcKeyValue) would return an instance of that specific node.
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only