Skip to Content
Programming Visual Basic .NET
book

Programming Visual Basic .NET

by Dave Grundgeiger
December 2001
Beginner
464 pages
13h 51m
English
O'Reilly Media, Inc.
Content preview from Programming Visual Basic .NET

Standard Modules

A standard module is a type declaration. It is introduced with the Module statement, as shown here:

Public Module ModuleTest
   ' ...
End Module

Tip

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Visual Basic .NET, Second Edition

Programming Visual Basic .NET, Second Edition

Jesse Liberty

Publisher Resources

ISBN: 0596000936Supplemental ContentCatalog PageErrata