Returns the error message of the most recent dBASE Plus error.

Syntax

MESSAGE( )

Description

Use MESSAGE( ) with other error-trapping commands and functions, such as ON ERROR, RETRY, and ERROR( ), to substitute specific responses and actions for dBASE Plus default responses to errors.

MESSAGE( ) is initially set to an empty string. MESSAGE( ) returns an error message when an error occurs, and remains set to that error message until one of the following happens:

Another error occurs

RETRY is issued

The subroutine in which the error occurs completes execution

To learn the BDE error message of the last BDE error generated by the current table, use DBMESSAGE( ).

See the table in the description of ERROR( ) that compares CERROR( ), ERROR( ), MESSAGE( ), DBERROR( ), DBMESSAGE( ), SQLERROR( ), and SQLMESSAGE( ).