Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenRecordSet
Message
 
To
21/02/1999 21:29:58
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00189193
Message ID:
00189923
Views:
9
>how about DoEvents() .. can I add it also ? .. thanks Eric for the advice

DoEvents is often use in a looping structure when you want other controls to react (to let other events occur).

Consider the following example:

Dim x As Integer
For x = 1 To 5000
Label1.Caption = x
DoEvents
Next x

If you run it, you will see (if you read fast enough) every number between 1 and 5000. If you erase the DoEvents statement, you will only 5000 appears at the end of the structure.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform