Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Statements
Exit Statement
For...Next Statement
While....Wend Statement
STATEMENT: Do
Implemented in version 1.0
Do
. . .
Loop
The
Do
statement repeats a block of code
Until
a condition becomes true or
While
a condition is satisfied.
You must end all
Do
statements with
Loop
or you will get an error message. You can place
Do
loops inside of other conditional statements. The
While
and the
Until
condition may be placed after the
Do
or the
Loop
.
Code:
<%
number = 1
Do Until number = 5
number = number + 1
Loop
%>
<%
number = 1
Do
number = number + 1
Loop Until number = 5
%>
<%
number = 1
Do While number < 5
number = number + 1
Loop
%>
<%
number = 1
Do
number = number + 1
Loop While number < 5
%>
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information