Lesson 6: Loop Structures Flashcards
They allow you to run one or more lines of code repetitively.
VB Loop Structures
It is a very useful feature of Visual Basic because it makes repetitive work easier.
Looping
It repeats a group of statements a specified number of times and a loop index counts the number of loop iterations as the loop executes.
For Next Loop
It stores the count of the repetition and increases its value with each repetition.
Variable
It is a numeric value that stores the starting value for the counter.
Start
It is a numeric value that stores the ending value for the counter.
End
This variable specifies a big increase or decrease in the value of the counter.
Step Size
It is a set of code you want to execute in each iteration of the For Next loop.
Statement
It is used to repeat a set of statements and indefinite number of times until a condition is satisfied.
Do Loop
This loop executes a set of statements when a condition is true. It is similar to the Do
While-End-While Loop