Hi Booth
as far as "(13 records/page means 200 clicks to get to the end of the file"
I agree with you that this would be unusable that is why I ALWAYS include a position to portion to ALL my subfiles (page at a time, or load all sub files)

I have always wondered about using a scrollbar, but you specify that SFLSIZ must be the actual subfile size
What do you do if the subfile size is CONTINUOSLY changing (thru adding and deleting records)

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


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Friday, April 15, 2011 3:36 PM
To: Midrange Systems Technical Discussion
Subject: Re: Subfile programming 101 problem with load all subfile

If you add a scrollbar then you will want the SFLSIZ to be the actual Subfile size - that is where the program gets the correct information for setting the scroller bar's length to give the user the relative size of the subfile.

As an aside, subfiles above 2600 in length are almost unusable, so the
9999 size may give you fits with users. (13 records/page means 200 clicks to get to the end of the file. Even if that is OK, stopping at a particular page is almost impossible.)

On 4/15/2011 10:52 AM, Alan Shore wrote:
Hi Robert
it can be, but as long as the sflsiz is larger than sflpag, then it
will continue to be a load all I don't know what the pros or cons are
of making the sflsize 1 more than sflpag or tons more than sflpag

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


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Rogerson
Sent: Friday, April 15, 2011 11:26 AM
To: Midrange Systems Technical Discussion
Subject: Re: Subfile programming 101 problem with load all subfile

Hi Alan,

For a load all subfile shouldn't the SFLSIZ be 9999?

Robert Rogerson

On Fri, Apr 15, 2011 at 11:15 AM, Alan Shore<ashore@xxxxxxxx> wrote:

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

--
Booth Martin
802-461-5349
http://www.martinvt.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2019 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].