UFT Extensibility Agent library 1.3
GetLastError Method
Description
Returns the error message that resulted from the immediately preceding action.
Syntax
Visual Basic
Public Function GetLastError() As String
Return Type

If the last action did not result in an error, return a null string. 

It is recommended that the Testing Agent return the message in the local computer's locale.

Remarks

Usually called by UFT if the last invocation returns any HRESULT other than success.

See Also