Visual Basic Modules and Procedures

Revision as of 15:26, 30 July 2007 by Neil (Talk | contribs)

Revision as of 15:26, 30 July 2007 by Neil (Talk | contribs)

A key part of developing applications using Visual Basic is ensuring that the code is carefully structured. This involves segmenting the code into projects, modules and procedures so that it is easy to understand and maintain.

The entire application is typically contained in a single project. Within a project, code is placed in separate code files called modules. Within each module, the Visual Basic code is placed in self contained procedures.

The topic of projects was covered in Creating a New Visual Basic Project. In this chapter we will look in detail at Visual Basic modules and procedures.

Visual Basic Code Modules