Delphi's equivelent to the VB function 'DoEvents'



Anyone know the Delphi equivelent???

Basically I need to yeild execution and pass control to the operating system for it to complete the events queued..
LVL 1
MadmarlinAsked:
Who is Participating?
 
DMNConnect With a Mentor Commented:
Application.ProcessMessages;
0
 
JohnchCommented:
You can try using

Application.processmessages

0
 
MannSoftCommented:
I havent used VB but from the description it sounds like you may want Application.ProcessMessages.  I usually pair a call to that with Sleep(1).  I dont know if thats a bad habit I picked up from using VirtualPascal or if its actually good, but it doesnt hurt.
0
 
geobulCommented:
Hi,
Application.ProcessMessages;

Regards, Geo
0
 
geobulCommented:
Hi all,

Wonderful sequence :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.