Kbase P170005: 4GL/ABL: Error (557) is generated executing the PROMPT-FOR statement.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/15/2010 |
|
Status: Unverified
SYMPTOM(s):
4GL/ABL: Error (557) is generated executing the PROMPT-FOR statement.
Displaying a value to frame.field is causing the FORMAT used by the PROMPT-FOR statement to be the length of the value displayed instead of the FORMAT defined for the variable or field.
The following code generates the error:
DEFINE VARIABLE cVariable AS CHARACTER FORMAT "X(7)" NO-UNDO.
DEFINE NEW SHARED FRAME FrameName
cVariable
WITH ROW 5 CENTERED NO-BOX NO-LABELS NO-ATTR-SPACE.
OUTPUT TO VALUE("test.txt").
EXPORT '1234567'.
OUTPUT CLOSE.
DISPLAY
"123456" @ cVariable WITH FRAME FrameName.
INPUT FROM VALUE("test.txt").
PROMPT-FOR
cVariable WITH FRAME FrameName no-validate.
INPUT CLOSE.
VIEW FRAME InputFrame.
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1x
OpenEdge 10.2A
OpenEdge 10.2B
CAUSE:
Bug# OE00199195
FIX:
Upgrade to OpenEdge 10.2B02 or later. If upgrading to OpenEdge 10.2B02 or later is not feasible, a workaround is to clear the FRAME after the DISPLAY statement. For example:
DEFINE VARIABLE cVariable AS CHARACTER FORMAT "X(7)" NO-UNDO.
DEFINE NEW SHARED FRAME FrameName
cVariable
WITH ROW 5 CENTERED NO-BOX NO-LABELS NO-ATTR-SPACE.
OUTPUT TO VALUE("test.txt").
EXPORT '1234567'.
OUTPUT CLOSE.
DISPLAY
"123456" @ cVariable WITH FRAME FrameName.
CLEAR FRAME FrameName.
INPUT FROM VALUE("test.txt").
PROMPT-FOR
cVariable WITH FRAME FrameName no-validate.
INPUT CLOSE.
VIEW FRAME InputFrame.