May 2007
Intermediate to advanced
1152 pages
30h 53m
English
The Module object refers to either a standard module or a class module within your database.
The Module object's properties are described in the following table.
| Property | Data Type | Description |
|---|---|---|
| Application | Application object | Returns the currently active Application object. |
| CountOfDeclaration-Lines | Long | Count of the number of lines in the General Declarations section of a standard or class module. |
| CountOfLines | Long | Count of lines of code in a standard or class module. |
| Lines | String | Contains the contents of a specified line or lines in a standard or class module. |
| Name | String | Returns the name of the standard or class module. |
| Parent | Object | Usually the Application object. |
| ProcBodyLine | Long | Contains the number of the line at which the body of the specified procedure begins. |
| ProcCountLines | Long | Contains the number of lines in a specified procedure of a standard of class module. |
| ProcOfLine | String | Contains the name of the procedure that contains the specified line in a standard or class module. |
| ProcStartLine | Long | Identifies the line at which a specified procedure begins in a standard or class module. |
| Type | AcModuleType Enum | Indicates whether a module is a standard module or a class module |
The methods for the Module object are listed in the following table.
| Method | Arguments | Description |
|---|---|---|
| AddFromFile | FileName | Adds the contents of the text file to a module. |
| AddFromString | String | Adds the contents of the string to a module. |
| CreateEventProc | EventName, ObjectName ... |
Read now
Unlock full access