Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Problem
Message
From
08/02/2008 11:34:25
 
 
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:
01290831
Views:
10
>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?

As above - you're attempting to load the tree each time Activate() fires. Can you put this code in the Init() instead - or set a flag the first time Activate fires and skip the operation on subsequent events.
Previous
Reply
Map
View

Click here to load this message in the networking platform