Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing a TreeView control
Message
 
 
À
18/10/2001 16:35:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00570526
Message ID:
00570533
Vues:
15
>Hey All,
>
>Whats the best way to clear the content of a TreeView active X control?
>There is no Clear method for the object.
>
>I tried resetting the Count property of the Nodes Collection to 0 but its a
>read only property.
>
>Any suggestions?
>
>Thanks in advance
>
>Pascal

Pascal,
I think you have to roll your own.
for lxx = Treeview.Nodes.Count to 1 step -1
   Treeview.Nodes.Remove(lxx)
endfor
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform