local oRoot as object,oNode as object
oNode=myform.myTree.SelectedItem
do while .t.
if type('oNode.Parent.text')==[C]
oNode=oNode.Parent
else
oRoot=oNode
exit
endif
enddo
Terry
www.r6solutions.com/>Dear all
>
>If TreeView have multiple root nodes at top level wich then branch down to multiple levels.
>If user click node at the deep end, how do I find root node of that branch.
>I need actually string of that root node as they are all strings.
>
>Any help is greatly appreciated.
>
>TIA
>Sergio
Imagination is more important than knowledge