qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DO...LOOP Statement Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
DO...LOOP Statement Details
 
Syntax 1
  DO [{WHILE | UNTIL} booleanexpression]
    [statementblock]
  LOOP
 
Syntax 2
  DO
    [statementblock]
  LOOP [{WHILE | UNTIL} booleanexpression]
 
  Argument            Description
 
  statementblock      One or more BASIC statements to be repeated
 
  booleanexpression   Any expression that evaluates to true (nonzero)
                      or false (zero)
 
You can use a DO...LOOP statement instead of a WHILE...WEND
statement. The DO...LOOP is more versatile because it can test
for a condition at the beginning or at the end of a loop.