CERROR( )
Topic group Related topics Example
Returns the number of the last compiler error.
Syntax
CERROR( )
Description
Use CERROR( ) before executing a new program to test whether the source code compiles successfully. If no compiler error occurs, CERROR( ) returns 0. CERROR( ) is updated each time you or dBASE Plus compiles a program or format file. CERROR( ) isn't affected by warning messages generated by compiling.
Use CERROR( ) in a program file. If you issue ? CERROR( ) in the Command window, it returns 0. (This is because dBASE is compiling the "? CERROR( )" command itself, which does not cause a compiler error.)
See the table in the description of ERROR( ) that compares ERROR( ), MESSAGE( ), DBERROR( ), DBMESSAGE( ), SQLERROR( ), SQLMESSAGE( ), and CERROR( ).