Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Items in Treeview
Message
From
18/12/1998 08:09:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168611
Message ID:
00168794
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform