qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Creating a Code Module
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Creating a Code Module
 
 ■ A code module contains procedures and declarations not necessarily
   associated with a specific form, but which are recognized throughout the
   application.
 
 ■ Code modules are useful for large or complex applications that contain
   multiple forms. You can place general procedures and declarations in a
   module; event procedures are restricted to form modules.
   See: Creating a General Procedure  Creating an Event Procedure
 
 ■ To create a code module:
 
   1. From the File menu, choose New Module
      Visual Basic opens the new module in a code window.
 
   2. Enter the code you want in the module
      Follow the Visual Basic guidelines for entering and editing code and
      declarations. See: Guidelines for Entering and Editing Code
 
 ■ While procedures in a module automatically apply to the whole application,
   declarations in a module apply only within the module. Whatever the code
   level and technique you use for declaring a variable or constant, special
   scoping rules may apply. See: Scope Rules