I'm assuming NOCLEAR and SCR1 record formats in your example below
belongs to display file of window2 program.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, April 09, 2008 12:52 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: window display clearing display first
Try add KEEP keyword to both the NOCLEAR and SCR1 record formats.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
JDHorn@xxxxxxxxxxxxxx
Sent: Tuesday, April 08, 2008 4:55 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: window display clearing display first
I have an issue with a window clearing the display
old oe system calls window1
window1 requests fax info
calls window2 to find customer fax numbers
returns to window1 with lr on
calls window3 to display error message
when window3 displays, it first clears the display
if I return from window3 and call another window program the display
is
still cleared.
the background will not return until window1 is redisplayed
if window2 does not turn on LR, everything works just fine.
all of the display files have records with assume and keep keywords
in
them.
all the record formats displayed use the overlay keyword.
I tested this in a number of different ways and it seems to be a
universal
truth.
Is this normal behavior? Is there a way to make this work with LR
on?
typical beginning of a screen member
R NOCLEAR TEXT('Prevent Initial Clear')
ASSUME
OVERLAY
1 2'X'
R NOERASE TEXT('Prevent Screen Erase')
KEEP
R SCR1
WINDOW(3 4 20 72)
OVERLAY
RTNCSRLOC(&XXRCD &XXFLD )
MOUBTN(*ULD
CF24)
Jim Horn
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.