ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Function keys

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

  • Function keys

    Dear all,

    I am using single record format screen (display file) . In that screen i am using "F3" function key for exit . But If i press other than F3 error message should be diaplayed . How to solve this ? Kindly help me.if i press other than f3 it displaying sytem error ,i need to avoid that and i need to diaplay message.

    With regards
    sudha
    The Secret Of Achieving Your Goals Is Revealed Before Your Eyes.
    System Engineer

    Sudha...

  • #2
    Re: Function keys

    Hi Sudha,

    Define only IN03 indicator in display file...
    if user presses other than F3 then display file wnt allow to process further and error message is displayed..

    Thanks
    Pavan Pokala

    Comment


    • #3
      Re: Function keys

      dow @SCRN1 = 'Y'

      EXFMT SCREEN

      select

      when *in03
      clear @SCRN1
      other

      // send message invalid key pressed

      endsl

      enddo
      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


      • #4
        Re: Function keys

        Hi Jamie.

        if i press enter then it will send "invalid key pressed" ???

        let me correct

        Thanks
        Pavan Pokala

        Comment


        • #5
          Re: Function keys

          Well not by itself you must use message subfiles
          or define a field at the bottom of your display and populate it
          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

          Working...
          X