I have gone Galt for a few months and am not near any of my work examples, so this is from memory.
The problem lies in your program at the point where it chooses to redisplay the subfile from the beginning. With a load-all subfile, the operating system takes care of the display work for you once the data is loaded. Your routine should only exit its loop when an option is taken in the selection field or a command key is pressed. The subfile will display back and forth all day on its own, showing the `Bottom` message on the last page (you can set the SFLEND indicator `ON` in the beginning of the routine).
Munday Software Consultants
From: Alan Shore <ashore@xxxxxxxx>
Sent: Apr 15, 2011 10:15 AM
To: "'midrange-l@xxxxxxxxxxxx'" <midrange-l@xxxxxxxxxxxx>
Subject: Subfile programming 101 problem with load all subfile
this may be a situation where I cannot see the wood for the trees (at least - that's what I hope it is)
Whenever I need to create a subfile program, I use a template and create a page-at a time subfile. This particular case, I can guarantee that the limit of 9,999 records being displayed will NOT be reached, so I decide to do a load all subfile. My SFLSIZ is larger (13) than my SFLPAG(12) and I have no problems in displaying the data EXCEPT when I reach the end of the display. My SFLEND(*MORE) is operating as expected. The only problem is that when I press the Page Down key, it starts from the beginning I expected it to NOT move and give me an error
When I start from the beginning, and press Page Up, nothing seems to happen, but at the same time, I do not receive an error. Anyone have any ideas?
Programmer/Analyst, Direct Response
"If you're going through Hell, keep going" - Winston Churchill
This thread ...
Re: Subfile programming 101 problem with load all subfile, (continued)
This mailing list archive is Copyright 1997-2020 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