Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing objects
Message
 
 
To
05/01/1999 16:57:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00172935
Message ID:
00172949
Views:
26
Jim,

Look at the code you are firing in the Destroy(). I have a form that builds a calendar of 180 days using a textbox class. The form releases in subsecond time. If I from the commandwindow RemoveObject() the container that holds the 200+ objects it takes less than a second. It can take several seconds if the Locals window is open and the form under test is expanded showing the container.

If you set form.LockScreen = .t. during the removal you'll save 21 repaints, but I can't quite imagine that they take that long unless you have something like an image on the form.

>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.
>
>I can make the process appear faster by setting the container's visible property to .F., but is there a way to actually make it faster?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform