0% found this document useful (0 votes)
104 views1 page

VBSyntax Repetition

The document discusses different types of repetition control structures in VB.NET including for, while, and do until loops. It provides examples of the syntax for each type of loop.

Uploaded by

sedmondsbrown
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views1 page

VBSyntax Repetition

The document discusses different types of repetition control structures in VB.NET including for, while, and do until loops. It provides examples of the syntax for each type of loop.

Uploaded by

sedmondsbrown
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

SEB’s VB.

NET Guide

Visual Basic Syntax


Repetition Control Structures

Fixed Loops:
Fixed loops execute a fixed number of times.

For variable= 0 to NumberToLoop


Statements…
Next

Pre-test / Guarded Loops:


Guarded loops have the condition tested at the beginning of the loop. If the condition is
FALSE, the statements within the loop will not be executed.

While (condition)
Statements…
End while

Post-test / Unguarded Loops:

Unguarded loops test the condition at the end. In Visual Basic the structure is slightly
different to the pseudocode format. There are variations of this loop structure.

Pseudocode:

Repeat
Statements…
Until (condition)

Visual Basic:

Do Until (condition)
Statements
Loop

Page 1 of 1

You might also like