>I have a oletree control. The tree control is is populated with various data. If I click on a node, lets say 4 levels in, how can I get the the text value of the nodes that in the path of the currently selected node? For examplle if have clicked on admin, clerical, word processing, person name how would I get these nodes to showup in textbox as maybe something like this: admin\clerical\word processing\person name?
>
>Thanks
>Nick Patel
Nick you can try something like (not tested)
loNode = This.SelectedItem
lcText = ""
do while !isnull(loNode)
lcText = loNode.text + "\" + lcText
loNode = loNode.Parent
enddo
HTH
Caroline