Kbase P115697: DOWN STREAM statement has no effect
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/1/2006 |
|
Status: Unverified
SYMPTOM(s):
DOWN statement has no effect
STREAM is not moved down one line resulting in information being overwritten
Character (TTY) version of the code works correctly
GUI version of the code shows the problem
DOWN STREAM statement was moved into an Internal Procedure
Internal Procedure has structure similar to:
IF x = y THEN DO:
...
END.
ELSE
DOWN STREAM str WITH FRAME frFrame.
If the DOWN STREAM statement is moved into the main procedure then the results are correct
CAUSE:
This is expected behaviour. As per the DOWN statement documentation:
Nothing happens until a data handling statement affects the screen.
There is no data-handling statement executing within the scope of the Internal Procedure. Without any data-handling, the DOWN statement has no effect which causes the overwritten results.
FIX:
Add a data-handling statement to the Internal Procedure. For example:
IF x = y THEN DO:
...
END.
ELSE DO:
DOWN STREAM str WITH FRAME frFrame.
DISP STREAM str Order.OrderDate WITH FRAME frFrame.
END.