Hmm,
Yes, in help for common controls is wrote so that property [node].Index is index in node collection.
I use only Key for access to any node...
lcKey="X"+LTRIM(STR(n,11))
loNode=This.Nodes.Item(lcKey)
MartinJ
>Ok, that worked, but now I have another very related issue. The line of code below is in my NodeClicked method and in the debugger it displays the key correctly. But where do I get the "5" (or whatever node number) from? I thought it was INDEX, but that does not return anything.
>
>
>This.Treeview.Nodes(5).Key
>
>
>>Key ID is same as object name - same rules
>>First letter must be alfa or _.
>>
>>You can use "X"+LTRIM(STR(n,11)) OR "X"+STRTRAN(STR(n,11)," ","0")