320 pts.
 Controling 2 subfiles at once
Hi, My RPG program displays a subfile listing various tasks in the upper half of a green screen and then if notes are found for any of the tasks, a second subfile is displayed in the bottom half of the screen. Both subfiles are output only. I write the Fkey format, then write sfl1, then overlay sfl2. Once the loading is complete and the screen displays, the cursor remains on the first output field of sfl2. The Fkey format is only for sfl1 and one of the functions is F10 to drop the sfl1 to see details about the tasks. This key works fine but in order to scroll sfl1, I need to move the cursor up to some portion of sfl1 first, then I can scroll down or up only once as the cursor jumps back to the first field of sfl2 as soon as I perform the scroll. I would like to add a Fkey to switch between each sfl and keep the cursor on that sfl so it functions correctly. Is this possible and if so, how do I do it?

Software/Hardware used:
ASKED: February 27, 2009  6:14 PM
UPDATED: March 3, 2009  2:59 PM

Answer Wiki:
Hi, You can achieve this by specifying CSRLOC in your DDS. Then you can fill the fields for cursor row and column to position your cursor. You should probably check the current cursor position first to find out which subfile your cursor is currently on, then fill the row and column for the other subfile. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  March 2, 2009  11:12 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Perfect.

Thank you.

 320 pts.