Visual Basic 2008 » Chapter 8

Creating Code Procedures

Creating a good interface is important, but it's only one of many steps toward creating a Windows program. After you've created the basic interface of an application, you need to enable the program to do something. The program might perform an action all on its own, or it might perform actions based on a user interacting with the GUI. Either way, you write Visual Basic code to make your application perform tasks. In this chapter, you'll learn how to create sets of code (called modules), how to create isolated code routines that can be executed (called procedures), and how to invoke the procedures you create.

 

Chapter 8.1: Creating Code Modules

A module is a place to store the code you write. Before you can begin writing Visual Basic code, you must start with a module. Read more...

 

Chapter 8.2: Writing Code Procedures

A procedure is a discrete set of code that can be called from other code. Read more...

 

Chapter 8.3: Calling Code Procedures

Calling a procedure is simple much simpler than creating one! So far, I've had you create two procedures. Read more...

 

Chapter 8.4: Exiting Procedures

Code within a procedure ordinarily executes from beginning to end literally. Read more...

 

Chapter 8.5: Avoiding Infinite Recursion

It's possible to call procedures in such a way that a continuous loop occurs. Read more...