The Err Object

The Err object has the following properties: Description

A string containing a standard description of the last error. Number

The system or custom number of the last error. Source

A string containing the application or ActiveX server name in which the error was generated.

LastDLLErr

About as much use as an ashtray on a motorbike. This supposedly contains the error number from a called DLL—supposedly. And if you actually get it to work, you must remember that the Err object's Description property isn't updated with a description of a DLL error.

HelpFile

A string containing the full path to the help file for this application (if one is available).

HelpContext

A string containing the context ID of the help section relating to this error (if available).

Here are its methods:

Raise

Generates an error. Use this to pass errors back to the client from OLE servers.

Clear

Resets the Err object to default values.

Was this article helpful?

0 0

Post a comment