ERROR( )
Topic group Related topics Example
Returns the number of the most recent dBASE Plus error.
Syntax
ERROR( )
Description
Use ERROR( ) to determine the error number when an error occurs. ERROR( ) is initially set to 0. ERROR( ) returns an error number when an error occurs, and remains set to that number until one of the following happens:
Another error occurs
RETRY is issued
The subroutine in which the error occurs completes execution
The following table compares the functionality of CERROR( ), DBERROR( ), DBMESSAGE( ), ERROR( ), MESSAGE( ), SQLERROR( ), and SQLMESSAGE( ).
Function |
Returns |
CERROR( ) |
Compiler error number |
DBERROR( ) |
BDE error number |
DBMESSAGE( ) |
BDE error message |
ERROR( ) |
dBASE error number |
MESSAGE( ) |
dBASE error message |
SQLERROR( ) |
Server error number |
SQLMESSAGE( ) |
Server error message |