Professional Documents
Culture Documents
Examples From Chapter 3 in The Visual Basic Textbook - Branching
Examples From Chapter 3 in The Visual Basic Textbook - Branching
Examples From Chapter 3 in The Visual Basic Textbook - Branching
Example 3.5 (If ... Then) Example 3.6 (If ... Then ... End If) Example 3.7 (If ... Else ... End
a= 2 x= 2
b= 1 n= -10 Example 3.12 (Case Select)
c= 4
INSTRUCTIONS: 1 - Make sure your "Design Mode" button is set to "Exit Design Mode"
2 - Enter data if needed (Examples 3.9 or 3.10)
3 - Press button for Example you want to run
Gottfried, Byron S., 2001, Schaum's Outline of Theory and Problems of PROGRAMMING WITH VISUAL
BASIC, Schaum's Outline Series, McGRAW-HILL, INC., New York, ISBN 0-07-135671-1
Example 3.14 (For ... Next) Example 3.15 (For ... Next) Example 3.16 (For ... Next)
Example 3.18 (a) (Do While ... Loop) Example 3.18 (b) (Do ... Loop While) Example 3.18 (c) (Do Until ... Loo
Example 3.18 (d) (Do...Loop Until) Example 3.19 (Exit Do) Example 3.20 (While ... Wend)
INSTRUCTIONS: 1 - Make sure your "Design Mode" button is set to "Exit Design Mode"
2 - Press button for Example you want to run
Gottfried, Byron S., 2001, Schaum's Outline of Theory and Problems of PROGRAMMING WITH VISUAL BASIC,
Schaum's Outline Series, McGRAW-HILL, INC., New York, ISBN 0-07-135671-1