remove node children

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I wanted to remove all node children under my node.

I tried to use

MyNode.delete and MyNode.Clear and

for i = MyNode.count
MyNode.index(i).remove
next i

None of them works.

Any suggestions to do this task?

your help is great appreciated,
 
Syntax I use:
objTree.Nodes.Remove (index)
My application only removes nodes with no children, so I suggest removing
starting from the bottom and moving up.
Hope this helps.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 
Syntax I use:
objTree.Nodes.Remove (index)
My application only removes nodes with no children, so I suggest removing
starting from the bottom and moving up.
Hope this helps.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".











- Show quoted text -

Thanks for helping,
 
Back
Top