How do i pause an app until an API process has finished.
Printable View
How do i pause an app until an API process has finished.
Perhaps you can use the DoEvents function?
.code.
.code.
DoEvents
.code.
.code.
It will do all the first .code. before continuing on to the second .code..
Hi,
Try
Busy = true
Your API
Call Pasue2Api
Public function PauseApi()
while busy
doevents
wend
end function
Some api's are processed in background, for instance bitblt, and it can be really annoying if you use autoredraw. There's no real way to determine how long you'll have to wait. :(