[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WHILE                    Begin Definition of WHILE/WEND Loop

 WHILE expression
 .
 . [statements]
 .
 WEND

    Begins the definition of a WHILE/WEND loop.

  expression    A numeric expression.

   ----------------------------------------------------------------------

      Notes:    QuickBASIC starts by evaluating expression. If expression
                is nonzero (true), the next statement is executed. If
                expression is zero (false), control passes to the first
                statement following the next WEND statement.

                When QuickBASIC encounters the WEND statement, it
                reevaluates the expression argument to the most recent
                WHILE. If that argument is still nonzero (true), the
                process is repeated; otherwise, execution continues at the
                next statement.

                WHILE-WEND loops may be nested to any level of complexity,
                but there must be a WEND for each WHILE.

See Also: DO FOR LOOP NEXT WEND
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson