Kbase 6493: How to correct the Progress "flash"
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to correct the Progress "flash"
900531-pmf01
INTRODUCTION: Date Last Modified: 6/26/90
=============
This Product Services Technical Support Knowledgebase entry describes
PROGRESS framing rules and scoping issues. It defines how to correct
a frame that overwrites data in the same frame position. This solution
also stops the data from flashing on the screen or from only displaying
the last record.
WHY YOU'LL NEED TO DO THIS:
===========================
To correct the framing problem that causes overwritten data and a
and a non-advancing frame, see the following:
Information displayed in a single (1 DOWN) frame, does not clear until
the block it scopes to iterates.
In this example:
DO WITH FRAME emp-frame:
FOR EACH employee WITH FRAME emp-frame:
DISPLAY e-id fname lname.
END.
END.
The emp-frame frame scopes to the DO block (the first block where
the frame is referenced). The employee data overwrites itself (flashes)
because the DO block does not iterate.
Blocks in PROGRESS that have frame scoping properties include the
Procedure, FOR EACH, REPEAT and DO WITH FRAME blocks.
PROCEDURAL APPROACH:
====================
There are two important steps for correcting the overwriting problem.
They are:
1. Make the frame a down frame.
2. Advance the cursor down the screen.
The following example displays corrected code:
DO WITH DOWN FRAME emp-frame:
FOR EACH employee:
DISPLAY e-id fname lname WITH FRAME emp-frame.
DOWN WITH FRAME emp-frame.
END.
END.
Another way to correct the overwriting problem is to:
1. Remove the DO WITH FRAME block.
This lowers the scope of the frame emp-frame to the FOR EACH block; an
iterating block.
The second solution looks like this:
FOR EACH employee:
DISPLAY e-id fname lname WITH FRAME emp-frame.
END.
ONLINE PROCEDURES OR UTILITIES:
===============================
None
REFERENCES TO WRITTEN DOCUMENTATION:
====================================
Programming in PROGRESS Course Book
PROGRESS Programming Handbook - Chapter on Frame Design
- Chapter on Block Properties
Progress Software Technical Support Note # 6493