Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView
Message
De
16/02/1999 08:47:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00187944
Message ID:
00187989
Vues:
22
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform