$LastErrMessage
$LastErrMessage
The error message generated by the last command that returned an error code.
Syntax
$lasterrmessage
Value
A character string. Can be reset by an application program.
Description
$Null at the beginning of each application session. The value changes only if an error occurs, or if the application program explicitly assigns a value.
When non-$Null, the variable represents, for the current session, the software message generated for the most recently executed command that returned an error code.
See Also