Chapter 3 -- Designing Modules and Procedures

[Previous] [Next]

Chapter 3

Since Microsoft Visual Basic is a visual language, much of your work involves designing user interfaces. However, you still have to write code to make your application do something. Modules and procedures are the framework for the code of your application, and building this framework requires careful consideration. There are proven techniques for creating better modules and procedures, and you should use these techniques when developing your project.

You'll often hear many different terms when modules and procedures are discussed. Take a look at the following table for descriptions of some of these terms.

Term Description
Procedure A named sequence of statements dedicated to a specific process. A procedure can have a set of parameters through which it can communicate with other portions of the program, and it can also return a value that can be used by other portions of the program. "Procedure" is a broad term covering Sub procedures, Function procedures, and Property procedures.
Sub procedure A procedure declared with the keyword Sub . Sub procedures do not return values.
Function procedure A procedure declared with the keyword Function . Function procedures return values.
Property procedure A procedure declared with the keywords Property Get , Property Let , or Property Set . Property procedures are used to create object properties that can be read ( Property Get ) or set ( Property Let or Property Set ).
Routine A generic term for a procedure.
Module A named collection of (preferably related ) procedures in a Visual Basic project.


Practical Standards for Microsoft Visual Basic
Practical Standards for Microsoft Visual Basic .NET (Pro-Developer)
ISBN: 0735613567
EAN: 2147483647
Year: 2000
Pages: 57

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net