O'Reilly logo

Sams Teach Yourself Visual Basic® 6 in 24 Hours by Sanjaya Hettihewa, Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Visual Basic Looping

You've now mastered sequential logic and decision-making logic. This hour's lesson explains how to write programs that contain looping logic. A loop is a set of program instructions that execute repeatedly. Your programming preferences and application dictate how many times the loop must repeat.

Loops play important roles in programs because you'll need to repeat sections of a program to process multiple data values. For example, you might need to calculate a total of past due charges for all past due customers. A loop can read each customer's past due charge and add that amount to the running total. As you learn more about Visual Basic in subsequent lessons, you will see additional uses for loops.

The highlights ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required