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



------------------
Remember, a "page at a time" design requires the subfile program to keep
track of which records are currently displayed and to load/reload the
subfile as the user pages or
browses through the data, so there is a fair amount of logic to do this.
------------------

If you use uneven SFLSIZ, SFLPAG values the only time you need to add more
records is when the user rolls past the last record in the subfile.

Rolling up and down thru the screen records does not even return control to
your program. Except when the user rolls past the beginning or past the last
record.

So really you only need to track the Maximum Subfile Number that has been
used, and if you are at the Top or the Bottom of the subfile.

If at the Top, do nothing except redisplay the 1st subfile record.
If at the Bottom, use the Maximum Subfile Number you saved to start adding
more records. The highest subfile number becomes the new Maximum value.
Redisplay use the screen using the Maximum Subfile Number to reposition the
screen to the new page of subfile records.

Assuming the logic flows smoothly, it's pretty easy and requires little code
changes to build as you go.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.