Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding Items in Treeview
Message
De
18/12/1998 08:09:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168611
Message ID:
00168794
Vues:
23
Emmanuel:

If you put the following code in a method, you can pass it a "key" and it will return the index number associated with that key. I use this code to get the nodenumber to delete an item from a tree.

lparameter tcNodeKey

local lnCount

for lnCount = 1 to this.acxTreeview.nodes.count
if this.acxTreeview.nodes.item[lnCount].key == tcNodeKey
return this.acxTreeview.nodes.item[lnCount].index
endif
endfor

* If it gets this far, return some failure value
return 0

HTH
Mike
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform