× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Booth,

I looked around at some code and my usual setup was DSPF1 would have
RSTDSP(*YES) and any other window display files overlaying DSPF1 would have
RSTDSP(*NO). I seem to remember a time when the background of a window
would go black without a setup like this. I'm on V7R1 now and I cannot get
that result no matter what I do now. But the problem with the background
data reverting back to the values first displayed seems to be when the
window DSPF is left active in PROG2 and has RSTDSP(*YES). Playing around,
the issue was fixed by either closing the display file in PROG2 or DSPF2
with RSTDSP(*NO).

- Steve


On Wed, Feb 12, 2014 at 2:57 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

That sounds like exactly the problem. It explains the behavior.

Thanks for the tip. Time to go play and see if there is a solution that
I can find.

Thank you. :)


On 2/12/2014 8:45 AM, Stephen Coyle wrote:
Was DSPF2 that PROG2 is using compiled with RSTDSP(*YES)?
Display files using windows usually are, and that means that when the
file
is first written to the screen, the data on the DSPF1 that is being
overlayed is saved and restored on subsequent writes of DSPF2.
So all calls of PROG2 after the initial call will display what was on
DSPF1
when it was first overlayed.
At least that is how I understand RSTDSP works.....

- Steve

--
Booth Martin
www.martinvt.com
(802)461-5349
Skype: booth.martin

To sum up: 1. The cosmos is a gigantic fly-wheel making 10,000
revolutions a minute. 2. Man is a sick fly taking a dizzy ride on it. 3.
Religion is the theory that the wheel was designed and set spinning to
give him the ride. -- H. L. Mencken, Coda from "Smart Set", 1920
--
This is the RPG programming on the IBM i (AS/400 and 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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.