Have you made any changes to the DSPFs, or have cause to recompile them? Dave
Have you made any changes to the DSPFs, or have cause to recompile them? Dave
I encountered this same behavior several years ago, and nobody I talked to seem to know what I was talking about. I tried all I could think of to correct it. It was really apparent on subfiles. The only way I could figure out to cure it was to close the dspf file when exiting the called program, and reopen it whenever the program was called again. Not very elegant.
The problem you describe is a common one and I don't know that there is a graceful away around it. Logically you might think that changing RSTDSP(*YES) to RSTDSP(*NO) on the display file might help, but, it does not. Although I do NOT like to set on *INLR for performance reasons, this is the main cause for why you see the same background from when the program was originally invoked. Have your offending program SETON LR (or "eval *inlr = *on;") and your window will display properly each time the program is called.
I always code window programs to open/close the display file on each call, and end with *INLR=*OFF (until the very last call). The background gets updated on each call. Chris
Hi, When I call my window using a new RPG IV program converted from an RPG III program, it will always display the background from the calling program as it was the first time the window was called. That is if you display record A and then call the window, you see record A in the background. After that no matter what record you display, when you call the window, it shows the record A display in the background. When you exit the window, the display changes back to the current data again. The original RPG III version of the window program leaves the background so that the window information corresponds with the information from the calling program in the background, i.e. record A shows record A and record B shows record B. The calling program is RPG III the the display file is external DDS. The RPG III and the RPG IV version both use the same display file. Can anyone help me? Thanks, Kate
Thanks, Setting on LR did it!