Shell.GetLastErrorMessage |
Top Previous Next |
Returns the last available error message.
Syntax function Shell.GetLastErrorMessage(): string
Description Returns the last available error message after calling a Windows routine.
The Return Value is a string value with the error message.
See Also
Example execute UDSBlock as begin
errcode = Shell.GetLastError(); errmsg = Shell.GetLastErrorMessage(); errmsg2 = Shell.GetErrorMessage(errcode);
GUI.ShowMessage('Error code: ' || errcode || String.CRLF() || 'Error msg: ' || errmsg || String.CRLF() || 'Error msg for code: ' || errmsg2); end |