Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to delay/wait without halting appl
Message
 
 
À
23/03/2004 08:59:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00888836
Message ID:
00888980
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform