Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removeing all nodes from a TreeView.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00252082
Message ID:
00252633
Vues:
16
>>>>>How do I do to remove one/all nodes from a TreeView?
>>>>>
>>>>>/Mårten Törnquist
>>>>Use the Clear method.
>>>
>>>A treeview does not have a .Clear method but one can easily
>>>be written using the .NodeCount property, a FOR loop and
>>>the Nodes.Remove method.
>>>
>>>Sorry 'bout that George.
>>>
>>Hiya Steve,
>>
>>First, no need to be sorry. Second, you're right (and I was imprecise in my response) a treeview object does not have a Clear method. However, a Treeview.Nodes does, which the syntax being Treeview.Nodes.Clear. It will clear all the nodes, and you can dump that FOR loop< g >.
>
>Thanks, I'll have to look at that........weeeeeeeeeeeee always finding something in that damn control.
>
Hi Steve,

I know exactly what you mean.< g > It was David Frankenbach who pointed out that method to me.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform