Returns the current error message or the program line that caused the error.

MESSAGE([1])

Parameters

[1]

Return the program source code that caused the error if MESSAGE( ) is included in an ON ERROR routine.

NoteNote

MESSAGE(1) is not available in the runtime.

If the program source code is not available, MESSAGE(1) returns one of the following:

  • The entire program line if the line is macro-substituted.

  • A command if the line contains a command without any additional clauses.

  • A command followed by three dots (...) if the line contains a command and additional clauses.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also