Method DacSession():getLastError() Professional

Returns the numeric value of the last error.

:getLastError() --> nErrorCode

The return value of this method is a numeric value with the code of the last error which occurred on the server. If no error occurred, the return value is 0.


This method is used to retrieve the numeric code of the last error. If the DacSession object manages a compound session, the error code of the first associated DacDataSource object is returned whose last error code is not equal to 0.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.