While condition
.
.
[statements]
.
.
Wend
While begins the While...Wend flow of control structure. Condition is any numeric or expression that evaluates to true or false. If the condition is true the statements are executed. The statements can be any number of valid BlueZone Basic statements. Wend ends the While...Wend flow of control structure.
Example:
Sub Main
Const Max = 5
Dim A(5) As String
A(1) = "Programmer"
A(2) = "Engineer"
A(3) = "President"
A(4) = "Tech Support"
A(5) = "Sales"
Exchange = True
While Exchange
Exchange = False
For I = 1 To Max
MsgBox A(I)
Next I
Wend
End Sub
Related Topic: