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!