UFT Extensibility Agent library 1.3
GetLastError Method
Returns the error message that resulted from the immediately preceding action.
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.


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

See Also