About code modules
Store global code in a code module form. This lets you write the code once, instead of multiple times. Any changes to this code are automatically reflected from everywhere the code is called.
By default, a project has one code module, called Module1. This module contains a Declarations section and a Main subroutine which is the entry point for your application. The application begins execution with the first line of code you add to the Main subroutine. You can add more code modules as needed for organizational purposes.
Adding code modules
To add a code module:
1 Click New on the Module tab of the Project Manager.
2 Type the module name.
The Module window opens.
Updating code modules
To add, edit, or delete code in a code module:
1 Select the module on the Module tab of the Project Manager.
2 Click Modify.
3 Update the code as required.
4 Press Tab to save your changes before closing the code window.
Renaming code modules
To rename a code module:
1 Select the module on the Module tab of the Project Manager.
2 Click Rename.
3 Type the new module name.
Removing code modules
When you remove a code module from a project, all of the subroutines and declarations within it are also removed. You can't undo this operation.
To remove a code module from a project:
1 Select the module on the Module tab of the Project Manager.
2 Click Remove.
|