Section 6.12. Wrap-Up


6.12. Wrap-Up

In this chapter, we completed our introduction to control statements. Chapter 5 discussed the If...Then, If...Then...Else, While...End While, Do While...Loop and Do Until...Loop statements. Chapter 6 demonstrated the For...Next, Select...Case, Do...Loop While and Do...Loop Until statements. Any algorithm can be developed using combinations of the sequence structure (i.e., statements listed in the order in which they are to execute), the three types of selection statementsIf...Then, If...Then...Else and Select...Caseand the seven types of repetition statementsWhile...End While, Do While...Loop, Do Until...Loop, Do...Loop While, Do...Loop Until, For...Next and For Each...Next (which we discuss in Chapter 8). In Chapters 5 and 6, we discussed how you can combine these building blocks to utilize proven program-construction and problem-solving techniques. We demonstrated how to alter the flow of program control using the various Exit and Continue statements. We introduced the logical operators, which enable you to use more complex conditional expressions in control statements. In Chapter 7, we examine methods in greater depth. So far you have learned how to create methods in classes, and a Main method in a module. Chapter 7 introduces the different types of methods, including how and when to use each of them. You will learn how to use methods to organize a complex object-oriented program into small, manageable pieces.



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net