PDA

Click to See Complete Forum and Search --> : DoEvents


QWERTY
Nov 5th, 1999, 05:35 AM
What does DoEvents do? I read everything in VB help but I still don't get its function.

------------------
Visual Basic Programmer
-----------------
PolComSoft
You will hear a lot about it.

MartinLiss
Nov 5th, 1999, 05:56 AM
When your program is very busy (like executing a quick loop), some events (like painting a screen, or the recognition of the fact that the user has clicked a command button) may not get a chance to happen. DoEvents "pauses" the current action to allow these other things to happen.

------------------
Marty

QWERTY
Nov 5th, 1999, 06:11 AM
Thanks

------------------
Visual Basic Programmer
-----------------
PolComSoft
You will hear a lot about it.

Yonatan
Nov 5th, 1999, 06:31 PM
Also, DoEvents returns the number of all open VB Forms. Not very useful...

------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)