Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding Items in Treeview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168611
Message ID:
00168681
Vues:
26
>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
Fil
Voir

Click here to load this message in the networking platform