Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Items in Treeview
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168611
Message ID:
00168681
Views:
22
>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
Map
View

Click here to load this message in the networking platform