Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))

Chapter 6

Using Decision Structures

After completing this chapter, you will be able to:

In the past few chapters, you used several features of Microsoft Visual Basic 2005 to process user input. You used menus, toolbars, dialog boxes, and other Toolbox controls to display choices for the user, and you processed input by using property settings, variables, operators, formulas, and the Microsoft .NET Framework.

In this chapter, you'll learn how to branch conditionally to a specific area in your program based on input you receive from the user. You'll also learn how to evaluate one or more properties or variables by using conditional expressions, and then execute one or more program statements based on the results. In short, you'll increase your programming vocabulary by creating code blocks called decision structures that control how your program executes, or flows, internally.

Upgrade Notes: Migrating Visual Basic 6 Code to Visual Basic 2005

If you're experienced with Microsoft Visual Basic 6, you'll notice some new features in Visual Basic 2005, including the following:

Категории