The naterr() function returns the native error code or codes for the last table operation on a specified table. If no table is specified, the naterr() function returns the native error code or codes for the last table operation, regardless of which table it was performed on. This function should be used only with c-tree and Pervasive.SQL tables.
naterr({table table_name})
• table table_name – The name of the table you wish to check the native error for.
Long integer
When the err() function returns an error code, you can use the naterr() function to find out the native error that occurred.
Refer to the CTERROR.PDF file included with Dexterity for a list of c-tree native error codes. Refer to the Pervasive.SQL documentation or Pervasive Software’s web site for a list of Pervasive.SQL native error codes.
For SQL tables, use the SQLError procedure and the Table_GetSQLErrorText() function to retrieve native error information.