Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to delay/wait without halting appl
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00888836
Message ID:
00888883
Vues:
12
Hi,

INKEY()

MartinJ

>>Hi,
>>
>>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.
>
>If Sleep API may be causing trouble, you can try this instead to test:
>
>1) Create modal form, with an object like a button to get focus
>2) Launch this modal with Init left = -10000 (or so)
>3) Use Timer (or even WAIT WIND TIME will work for quick test) in modal button to pause, then shut the modal, via the button with thisform.release
>
>You probably get the idea. This may not be practical for real apps as described, but can work for testing.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform