Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treview - Find root node
Message
From
18/03/2009 03:20:43
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01388033
Message ID:
01388973
Views:
39
Problem is solved
Thank you guys :)

>
>*Optimize at your discretion - Siblings ain't parents
>*
>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
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform