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 ...
Get Sams Teach Yourself Visual Basic® 6 in 24 Hours 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.