Summary


This chapter examined how decisions can be made in a program. It explored the If statement, and its variations, in considerable detail. This chapter also showed how the Select Case statement can simplify code when complex decisions must be made. It also showed how to use enumerations to make code more easily understood . Finally, this chapter discussed the AndAlso and OrElse operators and how they can provide a slight boost in program efficiency.

Decision making is a crucial element in virtually all computer programs. You should experiment with some programs of your own design, using the concepts discussed in this chapter, before moving on to the next chapter. Working the exercises at the end of the chapter should also prove useful.



Visual Basic .NET. Primer Plus
Visual Basic .NET Primer Plus
ISBN: 0672324857
EAN: 2147483647
Year: 2003
Pages: 238
Authors: Jack Purdum

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