Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 686

[VB Script] Setting a dealy in VB Script

$
0
0
Hi VB Forums,

I need to stop my code from running for 1 second before continuing on to the next line. WScript.quit(1000) produces the error below:

Name:  Error.PNG
Views: 94
Size:  30.1 KB

Below is a simplified version of what I want to achieve. The code produces the above error and only goes back one screen. I want to send the user back 2 screens.

Quote:

MsgBox "Hi"
Call Back
WScript.Sleep(1000)
Call Back

' Send user back one screen in UNIX based software
crt.Screen.Synchronous = True
Sub Back
crt.Screen.Send chr(27) & "OR"
End Sub
Any help with this will be greatly appreciated.

Also, can someone tell me how to write code in a code window on here? I don't seem to be able to figure it out.
Attached Images
 

Viewing all articles
Browse latest Browse all 686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>