5. Problem Solving and Control Statements: Part 2

Who can control his fate?

—William Shakespeare

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

Objectives

In this chapter you’ll learn:

• Problem solving with additional control statement building blocks.

• The essentials of counter-controlled repetition.

• To use the For...Next, Do...Loop While and Do...Loop Until repetition statements.

• 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 terminate the current iteration of a loop and proceed with the next iteration. ...

Get Visual Basic® 2012 How to Program, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.