Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to clear all nodes in Treeview at one go
Message
 
 
À
30/06/2000 00:29:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00386350
Message ID:
00387007
Vues:
22
Vijay,

The method thisform.otree.nodes.Clear works for me.

What version of Foxpro and Treeview control are you using?


>Hi Tim & Sergey,
>
>This is what I do anyway, but I think there has to be another better way instead of removing each node. The method thisform.otree.nodes.Clear eventhough removes all the nodes at one go, when you add them back again it produces error saying "The key has already been defined".
>
>Thanks for your response.
>
>Regards
>Vijay
>
>>Not sure what you mean but i do it like:
>
>>FOR lnI=1 TO thisform.otree.Nodes.Count
>>thisform.otree.nodes.remove(thisform.otree.Nodes[lnI].Index)
>>ENDFOR
>
>>HTH!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform