GetError Method (System Manager)

Gets the most recent error for this object.

Syntax

obj.GetError()
Where obj is an OpScrUtil.SystemManager object.

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

Set obj = CreateObject("OpScrUtil.SystemManager")
If Not(obj.LockWorkstation()) Then
MsgBox "Workstation was not locked. The error is " & obj.GetError()
End If