Hallo Albert,
for what I remember
given that the Node exists, select the Node and use its ensurevisible method.
lcKey = "n2.2b2"
.ocxTree.NODES(lcKey).ENSUREVISIBLE
HTH
Agnes
>Hello Everybody
>
>I have a treeview structure with about 2000 nodes over n levels.
>Normaly only the root is expanded.
>Now the user wants to see the full path from a special child node backwards to root(= autoexpand all nodes that point to the special child).
>(expanding the parent node of the child + the parent node of the parent node + ... = fullpath backwards)
>Example:
>root
>n1,n2,n3
>...,n2.1,n2.2,n2.3,...
>...,n2.2a,n2.2b,n2.2d,....
>...,n2.2b1,n2.2b2,...
>
>So if the given child key is n2.2b2 i want to expand root,n2,n2.2,n2.2b and point to n2.2b2
>The keys of the nodes have no structured id's as in my example. (just idnnnnnn)
>In VB there is a function "fullpath" to handel this.
>How to code this behavior in foxpro.(VFP 9.2)
>
>Any help welcomed.
>Best regards
>Albert
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]