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

Chapter 6 - Using Decision Structures - Part 1

By , About.com Guide

1 of 6

A Decision Structure is the code that makes a program do different things

Decisions

Computers are sometimes called, "Thinking Machines" (in fact, a supercomputer company by that name was in business once). But the main thing that has to happen when a computer is "thinking" is decisions. And making decisions with a computer is what this chapter is all about.

When people accuse computers of acting really stupid, it's really not the computer. It's incorrect programming. A programmer wrote a program that told the the computer to make a stupid decision. Computers always, always do what you tell them to do. If you program a bad decision, the computer makes a bad decision. A really good understanding of this chapter will prevent that from happening!

In this lesson, we're going to add some new details and information to the information about decison making in the book. For example, a decision structure using If statements will be explained early in the chapter. To make sure you understand how the various programming choices you have relate to each other, we'll code the same thing as a Select Case structure. We'll also add more information about the decision statements themselves, including one that the book left out. And we'll extend the event handling example at the end and tie it into the previous chapter where the VB.NET Region was introduced.

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.