Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying node values in textbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00643494
Message ID:
00643603
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform