As a quick thought try the following for the root nodes: if (TreeViewCompts.Items.Count = 0) then begin {Add the root node} TreeViewCompts.Items.Clear; {remove any existing nodes} Node := TreeViewCompts.Items.Add( NIL ,Name); {Add the root node} end; .... Stephen --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
- [DUG]: Adding nodes to Treeview and dupicates Chris Wallis
- Re: [DUG]: Adding nodes to Treeview and dupicates spoken out
- RE: [DUG]: Adding nodes to Treeview and dupicates Stephen Bertram
- RE: [DUG]: Adding nodes to Treeview and dupicate... Mark Derricutt
- [DUG]: DBase, ADO & Win98 Moises Lopez
- RE: [DUG]: Adding nodes to Treeview and dupicates Chris Wallis
- RE: [DUG]: Adding nodes to Treeview and dupicates Chris Wallis
- RE: [DUG]: Adding nodes to Treeview and dupicates Stephen Bertram
- RE: [DUG]: Adding nodes to Treeview and dupicate... Chris Wallis