Kbase P10894: Errors 274 and 4515 but compilation does not fail
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/18/2003 |
|
Status: Unverified
SYMPTOM(s):
** The character <character> is not permitted in name <name>. (274)
Invalid <preproc-define-type> '<string>'. (4515)
Error message but Source code is run even so, with bad preprocessor definitions
COMPILE NO-ERROR makes a .R without error message
COMPILE NO-ERROR does not set COMPILER:ERROR and COMPILER:WARNING
CAUSE:
Known issue. The compilation should fail and set COMPILER:ERROR. Nevertheless, the error messages are saved in the 4GL error stack.
CAUSE:
Bug# 20021022-003
FIX:
Next to the compilation, check if error 274 and 4515 are in the 4GL error stack with the following code:COMPILE <FileName> NO-ERROR.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
MESSAGE ERROR-STATUS:GET-MESSAGE(i)
ERROR-STATUS:GET-NUMBER(i)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.