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

Wait command

Status
Not open for further replies.

fugigoose

Programmer
Jun 20, 2001
241
0
0
US
I need a command that makes the program "hang" for a specified ammount of miliseconds. Kinda like a wait command or the QBASIC timer command. What would such a timer routine look like.
 
Put this declare statement in a module, you will then be able to call sleep in any forms code.

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

'example 5 second wait
Call Sleep(5000)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top