About
Pricing
Community
Teams
Start Free Trial
Log in
eshoris
asked on
1/21/2005
VB.NET - Looping
I know that there are a variety of looping structures available in VB. such as:
DO.....LOOP
WHILE.....WEND
FOR.....NEXT
I'm so confused with looping structures, can someone please explain.
Programming
3
1
Last Comment
fatalXception
8/22/2022 - Mon
bkthompson2112
1/21/2005
Do Loop:
Do
statements
Loop While condition
The condition test occurs after the loop statements have been executed,
so statements will always be executed at least once.
While Wend:
While condition
statements
Wend
The condition test occurs before the loop statements have been executed,
so statements may not be executed at all. (Depending on the condition.)
For Next:
For counter = x to y
statements
Next
For Next is used when you know how many time the loop will iterate.
bkthompson2112
1/21/2005
Here's a link:
http://www.startvbdotnet.com/language/loops.aspx
ASKER CERTIFIED SOLUTION
fatalXception
1/21/2005
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Do
statements
Loop While condition
The condition test occurs after the loop statements have been executed,
so statements will always be executed at least once.
While Wend:
While condition
statements
Wend
The condition test occurs before the loop statements have been executed,
so statements may not be executed at all. (Depending on the condition.)
For Next:
For counter = x to y
statements
Next
For Next is used when you know how many time the loop will iterate.