Sleep is provided by the Windows Script Host (WSH) and is not available in VBP (which is a script host itself and does not use WSH). To get a one second delay, you could use:
Wait 1
Function Wait(sec)
start = Timer
Do While Timer-start < sec
' no-op
Loop
End Function
|