Consultor Eletrônico



Kbase P80623: COMPILER:ERROR and COMPILER:WARNING return FALSE despite an error condition
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/27/2009
Status: Verified

SYMPTOM(s):

COMPILER:ERROR and COMPILER:WARNING return FALSE despite an error condition

COMPILE statement using NO-ERROR to suppress errors

Error is generated if NO-ERROR is not used with the COMPILE statement

COMPILER:ERROR, COMPILER:WARNING and ERROR-STATUS:ERROR all return FALSE

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.0x
OpenEdge 10.1A
All Supported Operating Systems

CAUSE:

Bug# OE00104128

FIX:

Option #1
Upgrade to 10.1A01 or later

Option #2
If upgrading is not an option, then a workaround is to query the ERROR-STATUS:NUM-MESSAGES. For example:

/* Sample Code */
DEFINE VARIABLE i AS INTEGER NO-UNDO.
IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
MESSAGE ERROR-STATUS:GET-MESSAGE(i)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
END.