Shell.GetErrorMessage |
Top Previous Next |
Returns the error message for specified error code.
Syntax function Shell.GetErrorMessage(ErrCode: integer): string
Description Returns the Windows message for the given Windows error code.
ErrCode should be a valid Windows error code.
The Return Value is a string value with the accompanying 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 |