Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information