Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clearing a TreeView control
Message
 
 
To
18/10/2001 16:35:57
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00570526
Message ID:
00570533
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform