Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing out a Treeview Active X Object
Message
 
To
09/04/2001 16:57:15
Thomas Ianuzzi
Information Security Consultants, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00493780
Message ID:
00493792
Views:
11
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform