GetError Method (Mailbox Analyzer)

Gets the most recent error for this object.

Syntax

obj.GetError()
where obj is an McExchAnalyzer.MailboxAnalyzer object.

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

Set obj = CreateObject("McExchAnalyzer.MailboxAnalyzer")
If Not(obj.LogonToMAPI("EXCHANGE1", "Joe")) Then
MsgBox "Could not logon. The error is " & obj.GetError()
End If