Escolar Documentos
Profissional Documentos
Cultura Documentos
Amsterdam Hotels
For...Next Boston Hotels
Chicago Hotels
You can use a For...Next statement to run a block of London Hotels
code, when you know how many repetitions you want. Los Angeles Hotels
Miami Hotels
You can use a counter variable that increases or New York Hotels
decreases with each repetition of the loop, like this: New Orleans Hotels
Paris Hotels
For i=1 to 10 Rome Hotels
some code Hotel Reservations
Next Discount Hotels
Hotel Rooms
The For statement specifies the counter variable (i) Web Building
and its start and end values. The Next statement Website Templates
increases the counter variable (i) by one. Website Builder
Flash Templates
Step Keyword Web Templates
Shopping
Using the Step keyword, you can increase or decrease Discount Apparel
the counter variable by the value you specify. Online Coupons
Cooking tools
Men & women clothing
In the example below, the counter variable (i) is
increased by two each time the loop repeats. Office supply
Home Finance
For i=2 To 10 Step 2 Shopping UK
some code UK Wholesalers
Next
Mobile Phones
Direct TV
To decrease the counter variable, you must use a Plasma TV
negative Step value. You must specify an end value Prepaid Phones
that is less than the start value. 123 Fast Loans
Software
In the example below, the counter variable (i) is Meta Search Engine
decreased by two each time the loop repeats.
Your Own Web Site?
Exit a For...Next
For Each...Next
Do While i>10
some code
Loop
Do
some code
Loop While i>10
Do Until i=10
some code
Loop
Do
some code
Loop Until i=10
Exit a Do...Loop
Do Until i=10
i=i-1
If i<10 Then Exit Do
Loop
Product Spotlight
AspUpload:
Advanced file upload solution. Provides a progress bar,
encryption, Unicode support.
Visit MaximumASP
Your Web
Design and
Development
skills don't
matter!
You don't have
to be the
cheapest bidder
to win!
Charging by
the hour is the
worst thing you
can do!
Your clients are
everywhere!
When the
project
finishes, your
income should
not!
Receive 4 FREE
CHAPTERS in your
inbox:
http://www.sitepoint.
com/launch/3a9053/2/4
or read more:
http://www.sitepoint.
com/launch/3a9053/3/4
Search W3Schools:
Go!
Does the world know about us? Check out these places:
How W3Schools
was converted to
XHTML