long GetLastSQLCode()
Description
This function returns the SQL code for the most recent error. If you call GetLastSQLCode() after a function that executed successfully, then this API returns information about the last error that occurred during a prior function call. To avoid confusion, always call GetLastSQLCode() immediately after calling a function that returned an error.
Return Value
The SQL code for the most recent error. Zero is returned if no errors have occurred since you created the QMF for Windows API object, or the most recent error was not an SQL error.
Related Tasks