Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete Node in TreeCtrl
Message
From
19/05/2009 00:35:02
 
 
To
18/05/2009 17:42:07
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01400524
Message ID:
01400566
Views:
55
>I'd like to delete a node in an exising TreeView. I've never worked with this control before. The app I've inherited allows Add and Edit, but no Delete.

There is a Remove command:
lcNodeKey = "_KEYNAME"
TRY
    thisform.oleTreeView.Nodes.Remove(lcNodeKey)
CATCH TO loException
ENDTRY
The parameter is the nodekey value of the node that you want to delete. I put the remove in a TRY - ENDTRY block to catch an exception if the nodekey does not exist (node improperly referenced or already deleted).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform