× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Alan,


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).



Robert Munday
Munday Software Consultants
Montgomery, AL
between gigs



-----Original Message-----
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

Hi everyone
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?


Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.