Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing out a Treeview Active X Object
Message
 
À
09/04/2001 16:57:15
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00493780
Message ID:
00493792
Vues:
12
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform