Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement