+ Reply to Thread
Results 1 to 6 of 6

Thread: Called window retains old background display RPG III vs RPGIV

  1. #1

    Default Called window retains old background display RPG III vs RPGIV

    Have you made any changes to the DSPFs, or have cause to recompile them? Dave

  2. #2
    Guest.Visitor Guest

    Default Called window retains old background display RPG III vs RPGIV

    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.

  3. #3
    Guest.Visitor Guest

    Default Called window retains old background display RPG III vs RPGIV

    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.

  4. #4
    Guest.Visitor Guest

    Default Called window retains old background display RPG III vs RPGIV

    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

  5. #5

    Default Called window retains old background display RPG III vs RPGIV

    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

  6. #6

    Default Called window retains old background display RPG III vs RPGIV

    Thanks, Setting on LR did it!

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2004, 05:28 AM
  2. Replies: 0
    Last Post: 11-10-2004, 11:28 AM
  3. Window blanking out background when displayed
    By hope@f2s.com in forum RPG
    Replies: 7
    Last Post: 03-01-2002, 11:18 AM
  4. Underlying Display Disapearing when using WINDOW
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 04-26-2001, 07:47 AM
  5. DDS Window Display Formats with ILE
    By Guest.Visitor in forum Programming
    Replies: 7
    Last Post: 04-15-1999, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts