Clear TreeView?

BlitzMax Forums/BlitzMax Programming/Clear TreeView?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a file selection which list all folders and files into a Treeview but when I reselect the file I want to list I would like it to clear the Treeview instead of adding to it. I have tried FreeTreeViewNode() and then recreating the node after but it errors like the node doesnt exist still so any ideas?