GetError Method (INet)

Gets the most recent error for this object.

Syntax

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

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

Set obj = CreateObject("OpScrUtil.INet")
If Not(obj.GetHTPPFile("http://localhost")) Then
MsgBox "HTTP file get failed. The error is " & obj.GetError()
End If