DOEVENTS yields execution of the current thread so that the operating system can clean out the message loop and execute any other pending business.
DOEVENTS()
DOEVENTS