Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Adding a 'wait' to a VB script
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

K
Starting Member

14 Posts

Posted - 07 June 2001 :  06:44:01  Show Profile
Does anyone know how I can add a pause to a VB script?

I've looked on the web and found some suggestions. One I've tried is to create a variable using DateAdd that is 5 seconds later than the current date/time. I then loop, comparing this variable with 'Now' and only exit the loop when Now has passed the time of this variable.

Unfortunately this is too intensive for the page I am using the script on, so I need some new ideas.

Any suggestions?

Thanks in advance!

K

camusflage
Starting Member

USA
26 Posts

Posted - 09 June 2001 :  21:07:30  Show Profile
Instead of doing an explicit comparison, how about an implicit one? Something like WHILE NOT timer = <desired timer value>.

Mike



Go to Top of Page

K
Starting Member

14 Posts

Posted - 22 June 2001 :  04:17:12  Show Profile
Thanks - I'll give that a go and see if it is any better :)

Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 22 June 2001 :  05:05:30  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
I've looked into this extensively. I wrote a chat app that could be easily converted from a client-pull refresh to a server-push (no annoying clicking) if only VB had a wait command.

The answer is (and I'm 98% sure of this), short of running external programs or server components, there is NO way to do this.

The method you are talking about I've tried. The CPU usage during a tight loop like that is 100%. Horrible thing to do to a server, and if it isn't yours expect a call from the admin, or to have your site taken down shortly.

If it is your server, or you can install components, let me know....I can throw out a few ways.

Go to Top of Page

inworg
Junior Member

Italy
153 Posts

Posted - 22 June 2001 :  05:54:59  Show Profile  Visit inworg's Homepage
quote:
I've looked into this extensively. I wrote a chat app that could be easily converted from a client-pull refresh to a server-push (no annoying clicking) if only VB had a wait command.


Hey Dan, I've wrote a chat too (see http://www.inworg.com/chatpreview/login.asp ) but I don't think your works great: what about session timeout on a server pull

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07