5 pts.
Q:
2 subfiles side by side
hi folks

i try to create a DSPF as a window and with 2 subfiles side by side within
So i create 2 several windows - once for every subfile, with all OVERLAY, INVITE, USRRSTDSP and WINDOW(..... *NOMSGLN *NORSTCSR),

In RPG i wrote
Write Window (Main)
Write CTL01
Write CTL02
Read DspFile (the DisplayFile itself)

But.... active is everytime the last window!!!!
All other is protected

Whats wrong?
ASKED: Nov 20 2009  4:47 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
4495 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
Only one subfile can be active at a time. In your case it is the last one written to the screen. You need to set up some way to toggle between them.
Last Answered: Nov 24 2009  4:44 PM GMT by Teandy   4495 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   15455 pts.  |   Nov 21 2009  1:45AM GMT

Do your windows have any input-capable fields?

Tom

 

Teandy   4495 pts.  |   Nov 25 2009  7:16PM GMT

Get a copy of a book by Kevin Vandever called “Subfiles in RPG IV“. On page 180 is an example of a side by side subfile.