|
I will have to check the code. Thanks for the help. Marvin -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy Sent: Tuesday, August 09, 2005 11:34 AM To: RPG programming on the AS400 / iSeries Subject: RE: Subfile Record positioning As Scott said anytime you use SFLSIZ>SFLPAG the CSRRRN is used to tell the OS which SFLPAG to display. To reposition to the selected record the OS has to know which SFLPAG to display. set the CSRRRN field = to the selected RRN in the SFL & then the OS will say "oh you mean THAT page!!!" Thanks, Tommy Holden -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Scott Klement Sent: Tuesday, August 09, 2005 1:16 PM To: RPG programming on the AS400 / iSeries Subject: RE: Subfile Record positioning > 1. before any other action is taken it is 1. > 2. after paging through the unfolded screen to record 5, pressing the > F10 key, the rrn is still 1 > 3. before the redisplay, it is still 1 So the RRN field is set to 1, but you can't figure out why it always starts with the first record of the subfile? By having this variable set to 1, you're telling the system "I want you to start displaying with record 1". You need to set this value to the record you want to put on the screen before you display it. If you want the subfile to be at the position where the user left off, set it to the value of CSRRRN. (But, if CSRRRN is zero, set it to 1 or some other valid value so that the program doesn't crash)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.