netcool
asked on
Wait Procedure ?
How can i tell the progam to wait for a few second before
proceeding to the next procedure ?
for example :
for i = 0 to 100
form1.combo1.additem (variables)
next i
****wait for 5 seconds
form2.show
proceeding to the next procedure ?
for example :
for i = 0 to 100
form1.combo1.additem (variables)
next i
****wait for 5 seconds
form2.show
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You may want to add a doevents inbetween the loop, that way other apps will run, and not stop. Just a suggestion.
redbaron is right.
DoEvents will allow Windows to process all upcomming events.
BUT if the wanted delay is small (couple of seconds) I would suggest to leave it as it is (perhaps make the function check the length and doevents for surtain combinations of HowLong and interval). When windows start performing events it can go on for quit some time.
DoEvents will allow Windows to process all upcomming events.
BUT if the wanted delay is small (couple of seconds) I would suggest to leave it as it is (perhaps make the function check the length and doevents for surtain combinations of HowLong and interval). When windows start performing events it can go on for quit some time.
Good Point.