$LastErrCode
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
$LastErrCode
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
The error code generated by the last command that returned an error code.
Syntax
$lasterrcode
Return Value
A number (1 to 9999). Can be reset by an application program.
Description
The reason for the failure of the most recently executed command that returned an error code other than 0 (success)
At the beginning of each application session, $LastErrCode is set to $Null. Its value then changes only if a command returns an error code, or the application program explicitly assigns it a new value.
Explanations for many error codes are contained in the ErrorHelp entity set, which you can access from your database application using the DESCERR or EXPLERR utility program.
See Also
Updated
ByJason Lee
Was this article helpful?
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5