Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I remove a node from tvw?

Status
Not open for further replies.

Doug4Now

Programmer
Apr 22, 2002
34
AU
I need to remove a node from a treeview. When I run the code with this line...

Code:
Set nodX2 = tvNodes(2).Nodes.Remove(tvNodes(1).SelectedItem.Key)

...the program stops with the word "Remove" highlighted and an error message saying "Expected function or variable."

Any ideas?

Doug

A nose by any other name still smells the same.
 
Yu don't need the 'Set'

TreeView1.Nodes.Remove .SelectedItem.Index

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top