db_sqlcode
Returns last database SQLCODE error code.
Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
Syntax
int db_sqlcode()
Description
Always returns the last SQLCODE value.
Example
Logs database error codes to a file.
if (g.error_code == err_DB) log("dbms.err",db_sqlcode());