qck.hlp (Table of Contents; 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.
Loops and Decision Structures
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Loops and Decision Structures
 
 ■ The following keywords are used in Visual Basic for branching, looping,
   and decision structures:
 
   DO...LOOP      Repeats statements until or while given condition is true
   END            Stops Basic program, procedure or block
   EXIT DO        Provides alternative for exiting DO...LOOP loop
   EXIT FOR       Provides alternative for exiting FOR...NEXT loop
   FOR...NEXT     Repeats statements specified number of times
   IF...END IF    Conditionally executes/branches to different statements
   IF TYPEOF      Conditionally executes statements based on control type
   IS             Used in IF TYPEOF statements to test control type
   GOSUB...RETURN Branches to and returns from subroutine
   GOTO           Branches unconditionally to specified line
   ON...GOSUB     Branches to line depending on value of expression
   ON...GOTO      Branches to line depending on value of expression
   SELECT CASE    Conditionally executes different statements
   STEP           Specifies by what increment to increase counter
   STOP           Terminates program or suspends trapping of events
   SYSTEM         Closes open files and returns control to the system
   UNTIL          Used in DO...LOOP to execute until condition is true
   WHILE...WEND   Repeats statements given condition is true
 
 See: Keywords by Task