Chapter 6. Control Statements: Part 2

Who can control his fate?

William Shakespeare, Othello

The used key is always bright.

Benjamin Franklin

Not everything that can be counted counts, and not every thing that counts can be counted.

Albert Einstein

Every advantage in the past is judged in the light of the final issue.



In this chapter you will learn:

  • The essentials of counter-controlled repetition.

  • To use the For...Next, Do...Loop While and Do...Loop Until repetition statements to execute statements in a program repeatedly.

  • To perform multiple selection using the Select...Case selection statement.

  • To use the Exit statement to break out of a repetition statement.

  • To use the Continue statement to break out of the ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.