1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 6 - Using Decision Structures - Part 1

By , About.com Guide

2 of 6

Organization of the Lesson

I became a little confused reading chapter 6 of our textbook, Using Decision Structures, because it wasn't clear to me why some of the topics were in this chapter. For example, the explanation of the mouse event handler at the end. But after reading the whole thing, I discovered that there is a good organization in the chapter. Here what I think it is:

  1. Decision structures in programming are all about how the sequence of execution of program statements. And event driven programming is a fundamental way to change that sequence.
  2. Inside the blocks of event code, the next level of statements that you can use to control the sequence of statements includes the traditional decision statements like If-Then-Else and Select Case. This is what the book shows you next.
  3. To put both concepts together, an example of an event handler that includes an If-Then-Else decision structure caps off the chapter at the end.

Rather than following the exact organization of Chapter 6 in the book, I'm going to present things this way:

  1. An explanation of some new things that you should know about the syntax of decision structures.
  2. The relationship of If-Then-Else structures to Select Case structures is discussed.
  3. An example showing how the tax rate program can be done as an If-Then-Else structure or a Select Case structure is explained. This example isn't included in the sample programs on the CD ROM with the book, so you have to see it here!
Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Using Decision Structures - Part 1

©2009 About.com, a part of The New York Times Company.

All rights reserved.