Skip to main content This browser is no longer supported. Show
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Do...Loop Statement (Visual Basic)
In this articleRepeats a
block of statements while a Syntax
Parts
RemarksUse a You can use either You can test The condition usually results from a comparison of two values, but it can be any expression that evaluates to a Boolean Data Type value ( You can nest Note The Exit DoThe
Exit Do statement can provide an alternative way to exit a
You can include any number of When used within nested Example 1In the following example, the statements in the loop continue to run until the
Example 2The following example uses a
Example 3In the following example,
Example 4The following example reads all lines in a text file. The OpenText method opens the file and returns a
StreamReader that reads the characters. In the
See also
FeedbackSubmit and view feedback for What is the structure that causes a statement or set of statements to execute repeatedly?A repetition structure causes a statement or set of statements to execute repeatedly. Repetition structures are used to perform the same task over and over. A condition-controlled loop uses a Boolean (true/false) condition to control the number of times that it repeats.
Which of the following is the structure that causes a statement or set of statements to execute repeatedly group of answer choices?Loops. A Loop is a control structure that causes a statement or group of statements to be executed repeatedly.
What is the structure that causes a statement or a set of statements to execute repeatedly in Python?More commonly known as a loop, a repetition structure causes a statement or set of statements to execute repeatedly as many times as necessary.
Which pair of loops causes a statement or set of statements to repeat as long as a condition is true?A while loop starts by evaluating a single condition. If the condition is true , a set of statements is repeated until the condition becomes false .
|