sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Function keys

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Function keys

    Dear all,

    I am using a F3 key in my display file . If we press other than F3 it should display error message . Though it shows system message , we need to display user message . can any one help. I done thru select and end select but it not working


    With regards
    sudha

  • #2
    Re: Function keys

    I'm guessing the message you are getting is something to the effect of
    "Function key not allowed."
    This is because your screen is not setup to use those function keys. (I'm probably telling you things you already know)
    I'm sure you could define all the function keys possible and display an error message.
    You could also change the CPF message (CPF5204), but that will effect all programs and would be wiped out when you next upgraded your system

    Having said all that, we can now wait for someone who might have a fancier solution

    Comment


    • #3
      Re: Function keys

      Red, I agree that the only way is to define all the keys then display your own error message instead of the IBM one.
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: Function keys

        Here is an example of program/DDS that defined all keys and uses the hex byte codes
        http://www.code400.com/forum/showthread.php?t=2201

        jamie
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: Function keys

          Originally posted by jamief View Post
          Here is an example of program/DDS that defined all keys and uses the hex byte codes
          http://www.code400.com/forum/showthread.php?t=2201

          jamie
          hi
          I'm also new to rpg..
          My suggestion is u can use msg files to display ur error while the f3 is on.
          i'm not sure abt this.. let me know if u've got the solution..
          laksha

          Comment


          • #6
            Re: Function keys

            Here is an example of message subfile.

            http://www.code400.com/messagesubfile.php

            jamie
            All my answers were extracted from the "Big Dummy's Guide to the As400"
            and I take no responsibility for any of them.

            www.code400.com

            Comment

            sponsored links

            Collapse

            Working...
            X