View Full Version : How to re-position a single-page RPG Subfile
Guest.Visitor
09-16-2002, 10:22 AM
Hi RPGPerson. I ASSuME that you are referring to a Page at a Time subfile? If so, you need to use the SETLL function. (See code below) If you want to keep the first (or last) selection by the user, then use the data from that subfile record and perform the SETLL and EXSR the LOAD_SUBR subroutine. -Mean 1
vin@planetchan.com
09-16-2002, 02:31 PM
I think I would describe Mean 1's solution as 'rebuilding' rather than 'positioning' the subfile. That is, rebuild the subfile page starting at the relevant record. It's also the solution I would use. 'Positioning' a subfile infers the tedious use of indicators to place the cursor at a particular record within the subfile.
Guest.Visitor
09-17-2002, 11:01 AM
Hi Vincent. Good analogy. Afterall, it is called "page at a time". Guess I get caught in the terminology, too. You are actually re-positioning the file, not the subfile. -Mean 1
Guest.Visitor
09-29-2002, 10:20 PM
Hello, The attached file contains detailed specs and code implementing various application designs using subfiles. Good luck, Stuart
Guest.Visitor
10-23-2002, 10:49 AM
File Removed by Administrator.
Guest.Visitor
10-23-2002, 11:02 PM
Please tell me how to go about repositioning a single-page subfile, where the sflsiz(13) is one more than the sflpag(12). I have an Options column where the user can exit the subfile depending upon the Option taken. I cannot seem to get subfile to go back to the original record the user selected. I work for a Utility company and the subfile may have to go through hundreds of records. If anybody has any code that would solve this problem, I would be grateful. Thanks, RPGPerson
Guest.Visitor
10-23-2002, 11:02 PM
Hi, if only want to reposition your subfile (without rebuilding it), you can use the DDS-Keyword SFLCSRRN Birgitta
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.