December 2001
Beginner
464 pages
13h 51m
English
A standard module
is a type declaration. It is introduced with the
Module statement, as shown here:
Public Module ModuleTest ' ... End Module
Don’t confuse the Visual Basic .NET term, standard module, with the .NET term, module. They are unrelated to each other. See Chapter 3 for information about .NET modules.
Standard module definitions are similar to class definitions, with these differences:
Standard module members are implicitly shared.
Standard modules cannot be inherited.
The members in a standard module can be referenced without being qualified with the standard module name.
Standard modules are a good place to put global variables and procedures that aren’t logically associated with any class.