General information
Category:
ActiveX controls in VFP
Hi Mathias,
Each Node has a number of properties to help you navigate around.
For example to do what you want you could try something like the following code:
*-- get a reference to selected node
loNode = TreeView1.SelectedItem
*-- remove child nodes
DO WHILE loNode.FirstSibbling.Index <> loNode.LastSibbling.Index
loNode.LastSibbling.Remove() && *
ENDDO
I'm not sure about the remove method - I can't recall. You might have to replace this line with:- TreeView1.Nodes( loNode.LastSibbling.Index).Remove()
Somewhere, I have the help file. If you want I could mail it to you.
Hope this is of some help.
Mace
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only