Kbase P162127: 4GL/ABL: A variable named mtime returns the MTIME function value instead of its own value
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/18/2010 |
|
Status: Unverified
SYMPTOM(s):
4GL/ABL: A variable named mtime returns the MTIME function value instead of its own value
A variable named 'mtime' returns the MTIME FUNCTION value instead of its own assigned variable value as expected.
The following code snippet demonstrates the issue. Observe that the variable mtime assigned values are ignored and that the MTIME function values are returned instead of the expected mtime variable values:
DEFINE VARIABLE MTIME AS INTEGER NO-UNDO.
ASSIGN MTIME = 12345.
MESSAGE
"The mtime variable value:~t" MTIME "~n"
"Should be:~t~t" 12345
VIEW-AS ALERT-BOX INFO BUTTONS OK.
RUN alpha.
PROCEDURE alpha:
DEFINE VARIABLE MTIME AS CHARACTER NO-UNDO.
ASSIGN
MTIME = "This looks like a bug".
MESSAGE
"The mtime variable value:~t" MTIME "~n"
"Should be:~t~t" "This looks like a bug"
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END PROCEDURE.
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1x
OpenEdge 10.2A
OpenEdge 10.2B
CAUSE:
Bug# OE00196327
CAUSE:
This is a bug because we should either NOT allow a variable to have the name 'mtime' OR, if we allow it, make the 'mtime' variable reference take precedence over the MTIME function reference.
FIX:
None at this time. As a workaround avoid giving the variables the same name as one of the 4GL/ABL functions.