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.