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.