Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to delay/wait without halting appl
Message
 
 
To
23/03/2004 08:59:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00888836
Message ID:
00888980
Views:
8
Virusim,

provided you are already sitting in the VFP READ EVENTS event queue, Use a timer that's set to trigger some time in the future. Then in it's Timer event you can check to see if what you are waiting for has finished or not. If it is carry out the task and let the timer object go out of scope. If it's not finished then let the timer go off again.

>If my application had to wait/delay for a few second,
>which is the best way to halt or wait without halting
>my application.
>
>In the past, I use Win32 API, Sleep or SleepEx
>which will halt my current thread. Any other
>way to do similar thing without halting my
>application.
>
>It might be using those Sleep function in my
>application that is causing problem to some
>my communication part using MSCOMM.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform