ModuleType Property (ASystem)

Returns the module type: Driver, System or Program.

Syntax

[ 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.

Where

enumAModuleType can be one of the following:

 

Name

Value

Description

amoduleTypeDriver

1

Driver

amoduleTypeSystem

2

System

amoduleTypeProgram

3

Program

Comments

This property is only useful when you have an Object variable and want to determine what type of module it is ( System, Program, Driver ).

Example

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

Applies to

ASystem

See Also

FileName