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