Controling 2 subfiles at once

320 pts.
Tags:
RPG Programs
Subfile
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?
ASKED: February 27, 2009  6:14 PM
UPDATED: March 3, 2009  2:59 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Floyd02
    Perfect. Thank you.
    320 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following