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



Thanks Paul and Tony.

I actually got it to work almost correctly.  

Loaded subfile, then if position-to field was not blank, chained back
through subfile until I found the first name record >= to my position-to
field.  I set my SFLRCDNBR to the found RRN and updated the subfile.
The problem I was having is that I forgot to initialize my SFLRCDNBR
field to 1 so kept getting a session/device error when it tried to load
the first display of the subfile.  

The problem I am having now is that when I redisplay the subfile at the
new point, my position-to field is not blank.  I can't seem to get it to
clear as it is part of my SFLCTL (subfile header) record.

Thanks again for your input.

Elonna



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Morgan
Sent: Friday, September 30, 2005 3:24 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Subfile Reposition with scrolling

Elonna,

Subfiles aren't keyed so you can't position the subfile based on a name.
However, you could create a shadow work file with Name, RRN.  This work
file
is created as you load your subfile.  When the user wants to position by
name you SETLL into your shadow work file to retrieve the RRN and
display
the subfile using that RRN in the SFLRCDNBR field.

This assumes you're loading all your customers in the subfile. If you're
doing 'page at a time' loading then you'll have to do some complicated
processing if they select a name not already in the subfile.  You'd have
to
load the subfile & work file up to the page containing that name.

Paul


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.