GetError Method (Terminal Server)

Gets the most recent error for this object.

Syntax

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

Parameters

None.

Return Type

String.

Example

To get an error after a function fails, enter:

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

This example shows how to the most recent error for the object.