remove node children

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,
 
D

Dorian

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".
 
I

inungh

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top