Low cost ecommerce web development India flash website design
For-Next Loops
The syntax is as follows
<%
For I = 1 to 10
Response.Write “Number = ” & I & vbCrLf
Next
%>
And the output ...
Number = 1
Number = 2
Number = 3
Number = 4
Number = 5
Number = 6
Number = 7
Number = 8
Number = 9
Number = 10
The vbCrLf used in the statement above is a predefined constant that equals
the combination of the Carriage-Return character (CR for short), and the Line
Feed character (LF for short.) Using it causes the output to continue on the
next line.
Without the vbCrLf, our output would have appeared on one long line:
Number = 1Number = 2Number = 3Number = 4Number = 5Number =
6Number = 7Number = 8Number = 9Number = 10
Freelance web designer ASP PHP ecommerce web development India