Chapter 6. Managing Program Flow with Visual Basic’s Control Structures

<feature><title></title>

In this hour, we will cover

  • Using conditional statements

  • Identifying the types of looping constructs Visual Basic supports

  • Using For loops

  • Using Do loops

  • Understanding the differences between subroutines and functions

  • Using subroutines and functions

</feature>

In the preceding hour we looked at variables and operators in Visual Basic, two important concepts in any programming language. In this hour we examine an equally important aspect of all programming languages: control structures.

Control structures are constructs that alter the control flow during a program’s execution. Without control structures, programs are executed by running the first line of code, ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.