Repeat
A Repeat statement contains a Boolean expression that controls the repeated execution of a list of statements. The list of statements begins with the Repeat command and is terminated by an Until command. The syntax of a Repeat statement is:
Repeat
{statement 1}
{statement 2}
…
{statement n}
Until {Boolean-expression}
The Boolean expression controlling the repetition is evaluated after the statements are executed. The contained statements are executed as long as the expression is False. If the expression is True at the beginning, then the statements are executed only once.
Example
An example of a Repeat statement is:
Move 1 to iPos
Repeat
Move (Mid(sMessage, 1, iPos)) to sChar
Move (iPos + 1) to iPos
Until ((sChar = "Z") or (iPos > (Length(sMessage))))