Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Problem
Message
 
 
To
08/02/2008 09:22:26
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01290371
Message ID:
01290834
Views:
14
>If this code is in the Form.Activate() you need to take steps to ensure that is only runs once - otherwise it will attempt to add the nodes to the tree again.
>
>Yes first treview works fine. Every thing shows ok on its place. Second time when FORM get ACTIVATE evnets then error message appears
>
>What is wrong?
\
Add a form's property, say, lFirstTime, set it to true

Change your Activate to
if thisform.lFirstTime
   thisform.PopulateTriewview()
   thisform.lFirstTime = .f.
endif
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform