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



Joe,

The behaviors are for two distinct functions. Think of the application as SEU editing a member.

Function 1: Position the first line of a subroutine to the top. Tripping the MDT on the line number and pressing enter will do that. That's by user request - to position that line to the top only when it's called for.

Function 2: Let's say I want the behavior when copying a line to automatically display the page containing the target line (I know SEU currently doesn't work like that.) Since the target line position may not be on the current page, default SFLRCDNBR behavior accomplishes that goal beautifully.

Both are legitimate and separate functions.

-mark

At 2/13/2011 01:54 PM, you wrote:
On 2/13/2011 12:37 PM, M. Lazarus wrote:
> Joe,
>
> Here's my dilemma. I basically have 2 requirements:
>
> 1) As described, the movement of the selected record to the top of
> the page, essentially a position-to.
>
> 2) The default type of behavior from SFLRCDNBR, namely the display of
> the proper page with the cursor positioned at that record.
>
> Is it possible to have both behaviors using the SFL keywords or do
> I have to pick one and program around the other?
>
> -mark

As far as I know the answer is, unfortunately, "yes". But understand
that you're asking the system to do two different things: put the record
you want at the top, and put some other record on the top. Why do you
want two different behaviors?

But assuming you do want two different behaviors, you'll have to program
the latter. You'll have to figure out which record "should" be on top,
and then either use a DSPATR(PC) on a subfile field and condition it
with an indicator, or use absolute row and column positioning of the
cursor and calculate it yourself. To me, it's more trouble than it's
worth, but it can be done.

Joe


As an Amazon Associate we earn from qualifying purchases.

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