GetLastErrorText

Syntax:

%GetLastErrorText()%

Description: 

Returns a text string describing the last error encountered by the task (the error string corresponds to the error code returned by GetLastError)

Parameter Description:

(No parameters required)

Example:


Sub Main
' Display the last error code and text
strError = "Error Code: " & GetLastError() & " Error: " & GetLastErrorText()
MsgBox strError
End
Sub


See Also:

GetLastError, GetLastStepExecutionTimeMS, GetLastStepExecutionTimeSec, GetTaskExecutionTimeMin, GetTaskExecutionTimeMS, GetTaskExecutionTimeSec