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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sleep statement

Status
Not open for further replies.

simanek

Programmer
Jan 19, 2001
137
US
Is there the equivalent of a 'sleep' statement in vb/vbscript? I need to sleep for about 3 seconds and can't figure out how to do it. Thanks. Mike
~~~~
simanek@uiuc.edu
"It's a Swingline!"
~~~~
 
Yes put this in a module:
Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)

then use sleep
 
in VB:
Copy this into a module and call it like:
Sleep 3000
The above would 'pause' the app for 3 seconds

Option Explicit

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top