Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer label
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347146
Message ID:
01347182
Views:
20
>>>>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."
Previous
Reply
Map
View

Click here to load this message in the networking platform