Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing objects
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00172935
Message ID:
00173055
Views:
36
Hi James,

>Is it my imagination or does VFP (5.0a) take an inordinate amount of time to remove several objects from a from programmatically?
>
>Last time I clocked it, it took 4 secs+ to remove a container with 21 contained controls.

If there were no control on the form that could take the focus, this would explain the behavior you are seeing, or if you use VFP 6 and manipulate certain SETTINGS. But with a pageframe on the form and VFP 5 running, this shouldn't take as long.

One possibility to increase speed could be setting LockScreen to .T. Another fake possibility would be to make the container invisible and let a timer remove one object after the other while the user can go on working.

To discover the reason for this behavior I would step by step simplify the form until speed significantly increases. Keeping in mind that with the debugger it runs faster, it's probably nothing in your code, rather one of VFP's basic behaviors that causes this problem.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform