>We have a serious problem with the Treeview OCX :
>
>1. In the debugger, any attempt to enter the "node" object crashes Visual Foxpro (illegal operation...)
>2. When repeating the following process several times, something wrong appears :
>
> A. All the treeview branches have been expanded (with the mouse)
> B. The whole structure is cleared with "ole_TreeView.Nodes.Clear"
> C. We try to rebuild the structure, with our procedure.
> The fist line is always OK .
>
>The bug : Sometimes, when trying to open he first branch, at the first node.add, the message appears:
> "member nodes does not evaluate to an object" ???
>
>On my machine, this happens after several attempts (4 to 20).
>When the structure is not expanded, it never happens.
>When I collapse the tree with the mouse before clearing, the bug still appears !
>On some other machines, with the same application and the same OCX, it does not seem to happen !
>
>We currently use COMCTL32.OCX 591 kb 19/07/97 17:00
>Registering it again with regsvr32 does not help !
>Fox.reg does not help either !
>
>Could anybody help me ?
>
>Thank You !
Salut Marc,
From your comments, all I can say is that I am using the same version of COMCTL32 with no problems. You might want to download the file about activeX controls from my Web. There's a TreeView example, with views and bizobjs (if I remember well). But I don't clear what you call "the structure". Why would you want to clear the structure? I see the treeview as a control that helps the user drill down into the information. When you click on a node it expands or collapse, but the information is still there, no need to get rid of it.
José