Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expand treeview
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00647884
Message ID:
00647927
Views:
17
>I put the
_screen.activeform.oletree.nodes[1].expanded = .f.
in the watch window, but where do I set the breakpoint?

If you double click on the grey border on the left of the expression in the watch window, you'll see a red dot - that tells you that there is a breakpoint. You can do the same by filling in the Breakpoints dialog that pops when you choose Breakpoints under Tools menu pad.

I tried setting the break point at
.llNode.Expanded = .t.
and it seemed to show true. Even the watch window for
_screen.activeform.oletree.nodes[1].expanded = .f.
returned a true. Am I on the right track?.

I don't know, from what you said, I believe that the nodes are expanded (the tree flickers), but then they are collapsed... The breakpoint is supposed to stop the program on the line where the node is collapsed. So, you start your form, set the breakpoint, then click the expand all button. All expanded should be set to .T., so if node 1 goes back to .f., the debugger will show you where...


Here is what my other button for collapse looks like:
>
>
>*button colapse
>WITH thisform
>LOCAL g
>FOR g = 1 TO .OleTreeView.nodes.count
>	.OleTreeView.nodes(g).expanded = .f.
>ENDFOR
>ENDWITH
>
I loop trough the object collection, but your code should do the same thing.

>
>Thanks
>Nick Patel
Doru
Previous
Reply
Map
View

Click here to load this message in the networking platform