Returns the module type: Driver, System or Program.
[ enModuleType = ] Object.ModuleType
The ModuleType property syntax has the following parts:
Name |
Type |
Description |
Object |
ASystem |
ASystem object |
enModuleType |
enumAModuleType |
An integer specifying the type of module, either Driver, System, or Program. |
enumAModuleType can be one of the following:
Name |
Value |
Description |
amoduleTypeDriver |
1 |
Driver |
amoduleTypeSystem |
2 |
System |
amoduleTypeProgram |
3 |
Program |
This property is only useful when you have an Object variable and want to determine what type of module it is ( System, Program, Driver ).
The following statement uses the ModuleType property to provide special logic for errors occurring in the System module:
if GetErrorModule().ModuleType = System
! special logic for system errors
endif