Author |
Topic  |
|
K
Starting Member
14 Posts |
Posted - 07 June 2001 : 06:44:01
|
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
|
Instead of doing an explicit comparison, how about an implicit one? Something like WHILE NOT timer = <desired timer value>.
Mike
|
 |
|
K
Starting Member
14 Posts |
Posted - 22 June 2001 : 04:17:12
|
Thanks - I'll give that a go and see if it is any better :)
|
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 22 June 2001 : 05:05:30
|
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.
|
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 22 June 2001 : 05:54:59
|
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   
 |
 |
|
|
Topic  |
|