Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to clear all nodes in Treeview at one go
Message
 
 
To
30/06/2000 00:29:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00386350
Message ID:
00387007
Views:
23
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform