• Subject: Re: Function Key handling in multiple Subfiles.
  • From: "Scott Klement" <infosys@xxxxxxxxxxxx>
  • Date: 29 Apr 1999 18:14:06 -0500

To the best of my knowledge, Rajeev, function keys are not associated
with subfiles (with the exception of the SFLDROP keyword, I guess)

but, instead, function keys are associated with the record format that
you place them in.

I'd suggest that you:
   1) keep track of whether your overlayed subfile is being displayed
        at any given moment.
   2) check the row & column that the cursor was at when the F-key
        was pressed... and figure out whether the cursor was in
        subfileA or SubfileB
   3) based on the results of 1 & 2, above, take a different action
        in your program.

Does that help?  or do you need more info?

Scott Klement
Information Systems Manager
Klement's Sausage Co, Inc.


"Rajeev Asthana" <Rajeev_Asthana@paramount.com> wrote:
> **** SMALL CORRECTION ********
>
> Hi All,
>
> In my application, I am displaying SubfileA, then upon some entry
>  criteria
> displaying(overlaying) SubfileB, then upon certain criteria selectin
>  the
> subfileB fileds and moving in entry fileds of subfileA.
>
> Both the Subfiles have F3 and F12  function keys.
>
> Now when I press F3/F12 in SubfileB, the action that's taking place
>  of
> SubfileA together with actions of sufileB(i.e. it's moving to previo
>  level
> also).
>
> How can I restrict the function key handling to my current Subfile
>  only(e.g. in
> this case to SubfileB only)?
>
> Thanks a lot.
>
> Rajeev.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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.