Results 1 to 4 of 4

Thread: DoEvents

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    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.


  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Thanks

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


  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Also, DoEvents returns the number of all open VB Forms. Not very useful...

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: RZvika@netvision.net.il
    ICQ: 19552879



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width