>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
Node.Root returns the first root
So, I see no other possibility than navigating upwards
LPARAMETERS node
local RootNode
RootNode = m.Node
do while !isnull(m.RootNode.Parent)
RootNode = m.RootNode.Parent
enddo
acti screen
?RootNode.Text
Maybe you can
- add a Property to the class (RootNode) and put that bit of code in the RootNode_Access, or
- add a function RootNode(Node)
Gregory