Lesson 10: Repetition Structure Flashcards
These allow you to run one or more lines of
code repetitively.
Visual Basic Loop
Structures
Required. Boolean expression. If
condition is Nothing, Visual Basic
treats it as False
Condition
Optional. One or more statements
following While which run every time
condition is True
statements
Required. Terminates the definition of
the While block
End While
Allows you to test a condition at either
the beginning or the end of a loop
structure.
Do LOOP
Required. Starts the definition of the Do Loop
Do
Required unless Until is used. Repeat the loop until condition is False.
While
Required unless While is used. Repeat the loop until condition is True
Until
Optional. One or more statements that are repeated while, or until, condition
is True
statements
Optional. Boolean expression. If condition is Nothing, Visual Basic treats it as
False
condition
Required. Terminates the definition of the Do Loop.
Loop
Performs the loop a set
number of times. It uses a loop control
variable, also called a counter, to keep track
of the repetitions.
For Loop
Required in the For statement. Numeric variable. The control
variable for the loop.
Counter
Optional. Data type of counter.
datatype
Optional. Numeric expression. The amount by which counter is
incremented each time through the loop
step