|
SFLCSRRRN is used to RETURN the cursor position, not SET it. You probably want to use the SFLRCDNBR keyword with the CURSOR option. You DDS would look something like this: A NEWPOS 4S 0H SFLRCDNBR(CURSOR) Then set NEWPOS to the RRN that you want to move the cursor to. Beware -- if NEWPOS is set to less than 1, or greater than your subfile size, your program may crash. On Mon, 15 Jan 2001 RReddy@medicalartspress.com wrote: > > Got a simple question.... > > How would i control the cursor position in a subfile???. > > For example... > > Lets say i am at third page of the subfile & i have selected 5th record in > that page by entering "1" at the option field. I display a window subfile > on the same screen. If i cancel the window subfile.. i want my cursor to be > at the fifth record only. Right now the cursor is moving to first record of > the third page. > > Please note i have tried to use SFLCSRRRN, CSRLOC... they don't seem to > work. Appreciate if you guys can give me an example that works. > > Any Ideas. > > Thanks. > Reddy > > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.