Which is the best way to make my program wait for 10secs, before it executes the next step. Is there any thing similar to wait() function?
Thanks in advance
Printable View
Which is the best way to make my program wait for 10secs, before it executes the next step. Is there any thing similar to wait() function?
Thanks in advance
kota_balaji,
Use the API call SLEEP 1000 * 10.
Hey , how can use that API. Do i need to refer that? Sorry, I am new to VB.
kota_balaji
Look here Download and install the API Guide for all VB Api calls.
Thanks randem, it worked and thanks for the excellent site.
Or this (untested) :
[Highlight=VB]Public Sub Delay (iInt As Integer)
Dim lStart As Long
lStart = Timer
Do while Timer - lStart < iInt
DoEvents
Loop
End Sub[/vbcode