Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Node in TreeCtrl
Message
De
19/05/2009 00:35:02
 
 
À
18/05/2009 17:42:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01400524
Message ID:
01400566
Vues:
54
>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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform