you are only waiting 1 millisecond.
try
wait = timer + 1000
BTW: You should never use a delay loop like this on a production site. It
will soak up all available processor capacity. Time delays in ASP page
scripts generally to not make sense, but there are some components available
that do a proper wait using winapi calls.
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"yabba" <ya****************@bigfoot.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
I havent used this before... shouldn't this code produce one line at a
time?
It doesn't... all 10 lines come at once.
What am I missing?
<%
response.buffer = true
dim x
dim wait
%>
<html>
<head>
<title>flushTest.asp</title>
</head>
<body>
<%
for x = 1 to 10
response.write timer & "<br>"
response.flush
wait = timer + 1
while wait > timer
wend
next
%>
</body>
</html>