GetErrorModule Procedure

Returns the current run-time error module.

Syntax

[ obModule = ] GetErrorModule ( )

The GetErrorModule procedure syntax has the following parts:

 

Name

Type

Description

obModule

Object

The current run-time error module.

Comments

This function can be used only when a non-fatal and recoverable run-time error occurred and the OnError subroutine was called. Otherwise, the function returns nothing.

Example

This example demonstrates how to return the current run-time error module.

obModule = GetErrorModule()

print "Error in Module:"; obModule.Name

See Also

Abort, GetErrorNum, Ignore, Pause, Retry