>>>>I have a "wait" label on a form controlled by a timer to chg size and shape while work is progressing in a hidden window.
>>>>However, when the work is running, the timer seems to barely get any processor time and has no effect on the
>>>>label. Is there a better way?
>>>
>>>Put DOEVENTS in your process.
>>>If that process is in a loop, nothing can stop it :-)
>>
>>The work being done IS in a do..while loop basically, so nothing would work?
>
>If you put DOEVENTS in that loop all waiting events will be fired, if you have no such commands nothing can stop it.
>VFP is a single threaded language, when some code starts you can't stop it if you didn't have something that stops it and wait the events to happen.
>You could use INKEY(0.01),. WAIT WINDOW "" 0.01 or DOEVENTS, your choice.
>I remember there is a multithread FLL (DLL?) that helps VFP to execute a code in separate thread so the application don't have to wait until the execution of this process to finish. But kill me I can't remember where to find it. Maybe here in download area?
You're right. I did try it and the form refreshed and looked beserk and the hidden window showed the output being processed.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."