GetError Method (Event Log)

Gets the most recent error for this object.

Syntax

  obj.GetError()
  where obj is an OpScrUtil.EventLog object 

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

  Set obj = CreateObject("OpScrUtil.EventLog")
  If Not(obj.ClearEventLog()) Then
   MsgBox "ClearEventLog Failed. The error is " & obj.GetError()
  End If