Re: VBScript - Wait (cont)
by "Phil Babcock" <pbabcock(at)bgsgroup.com>
|
| Date: |
Tue, 14 Nov 2000 14:24:47 -0500 |
| To: |
"Cyanide _7" <leo7278(at)hotmail.com>, hwg-languages(at)hwg.org |
| References: |
hotmail |
| |
todo: View
Thread,
Original
|
|
Hmmmmmm... well this works in ie5.5 and nn4.7 on win2k.... the only change=
I made to your code is in your for loop I changed "wait i" to "wait 1"=
because the other way it waits 0 seconds, then 1, 2, 3 etc. I don't know=
if this was intentional, but I didn't have the patience to wait so this is=
faster! Perhaps it has something to do with running locally as opposed to=
over the net... I'll go test that out...
<%@ Language=3DVBScript %>
<HTML>
<HEAD>
<META NAME=3D"GENERATOR" Content=3D"Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
public sub wait (numSecs)
fin =3D DateAdd("s",numSecs, Now)
while Now < fin
wend
end sub
FOR i =3D 0 TO 3
Response.write now & "<BR>" & vbCRLF
Response.flush
wait 1
NEXT
Response.Write "FINIS"
%>
<P> </P>
</BODY>
</HTML>
phil.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.