>I have a Treeview object on a tabbed page within a pageframe. In the click event of the page I reference a method which creates a table and then polulates the nodes on a treeview control.
>
>The first time the code runs it produces a perfect treeview display. On subsequent clicks it produces errors (either object is not unique in collection or index errors)
>
>I have tried clearing all nodes and have tried calling the destroy and init events in sequence with mixed results
>
>How can I completely clear out a treeview so that I can rebuild it differently
treeObject.nodes.clear should do what you need.
I'll suggest you go to
www.stonefield.com and under their "Technical Papers" download the file about "Using Visual FoxPro ActiveX Controls". Very helpful.
HTH,
- Erik Niese-Petersen
Crazy Dane in USA.