>I'm sure others have seen this behavior, but in 6 years of foxpro/vfp programming this is the first time for me.
>
>I have a screen that has a vcx progress meter on it (cprogres.vcx downloaded from the UT). I have used this progress meter several times over the years. One thing I alway noted was that if I didn't put an doevents in the code loops, the meter would never update.
>
>Here is the wierd part. When the form is running (checking records from one table for a match in another, and then updating a counter for the number of matches) it cruises along in a nice manner, 1,2,3,4,5% fast enough, but slow enough you can count along with it. BUT!!! If I move the mouse around on the form while it is working, the meter progress flies. Running the form without moving the mouse takes about 1 1/2 minutes. If I move the mouse, the progress is done in a matter of seconds!
>
>This isn't a show stopper, but certainly makes me wonder why. Is the application really already that far ahead and the screen just hasn't caught up, or is the meter actually slowing down the whole progress of the application?
>
>Any thoughts welcome.
>
>Kirk
See this FAQ: Speeding up DoEvents() September 30, 1998 17:18 FAQ #7779
If it's not broken, fix it until it is.
My Blog