Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you pause after a call to a sub

Status
Not open for further replies.

tbscmgi

MIS
Sep 17, 2003
66
US
Hi-
How can you pause or wait about 30 second after a call to a sub. I have a few call, but the first have to be finished before next to take affect. That why I want to put a pause or wait after a call.

Thanks in advance for any help.
Tony
 
When you call a sub from the main body of a script, execution moves into that script. So if in the body of a script you call several subs in a row, each one will only execute after the previous one has already ended.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Something like this ?
WScript.Sleep 5000 ' wait 5 seconds

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top