Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to clear all nodes in Treeview at one go
Message
From
30/06/2000 08:41:52
 
 
To
30/06/2000 00:29:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00386350
Message ID:
00387008
Views:
17
Take look at my web site for a working treeview example

http://www.semo.net/suburb/thornton/visual.html

>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform