The following topics show all the dBASE Plus error messages. Choose a topic to display the messages and their corresponding numbers alphabetically or numerically.

Error Messages - Alphabetical List

Error Messages - Numeric List

Trapping Errors

You can use the ON ERROR command to designate a subroutine as an error handler. This subroutine is automatically executed when an error condition occurs during runtime. The subroutine can use the following functions to trap errors:

 ERROR( ) returns a dBASE error number.

 MESSAGE( ) returns a dBASE error message.

 DBERROR( ) returns a BDEerror number.

 DBMESSAGE( ) returns a BDE error message.

 SQLERROR( ) returns a server error number.

 SQLMESSAGE( ) returns a server error message.

 LINENO( ) returns the number of the line at which the error occurred.

 PROGRAM( ) returns the name of the program, procedure, or user-defined function in which the error occurred.

The error-handler subroutine can use these returned values to make branching decisions or provide information to the user.

ON NETERROR is similar to ON ERROR, except that ON ERROR responds to all run-time errors regardless of whether they're multiuser-specific. You can use ON ERROR to handle both single-user and multiuser errors, or you can use ON NETERROR to handle just multiuser errors. If you issue both ON ERROR and ON NETERROR, then ON ERROR responds to just single-user errors, leaving ON NETERROR to respond to multiuser errors.

The CERROR( ) function returns the number of an error that occurs at compile time.