ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Weird DSPATR problem

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

  • Weird DSPATR problem

    I have a weird problem. I have a record format in my display file in which I am using DSPATR(HI) on most of the fields and most of the text. I have one field in which DSPATR(HI) will not work. I have also tried DSPATR(UL) and COLOR(WHT) and neither of those work. It is an output field. Has anyone ever had this problem before?

    Jane22

  • #2
    Re: Weird DSPATR problem

    Is the field conditioned to change display attributes if an indicator is on or off?

    example:

    A 9 2'Customer'
    A 79 DSPATR(ND)
    A N79 DSPATR(HI)

    Comment


    • #3
      Re: Weird DSPATR problem

      Sorry, I should have mentioned that. There are no indicators used.

      Jane22

      Comment


      • #4
        Re: Weird DSPATR problem

        r u allowed to post some of the DDS?

        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: Weird DSPATR problem

          Code:
          A          R SFLFTR                                               
           A            FLDA          18A  O 18 37DSPATR(HI)            
           A            FLDA1          3A  O 18 33DSPATR(HI)             
           A            ANS1           1A  B  18 31DSPATR(HI)               
           A                                 19 21'OR OTHER '              
           A                                      DSPATR(HI)               
           A            FLDB            1A  B  19 31DSPATR(HI)               
           A            ANS2            3A  B 19 33DSPATR(HI)
          This displays on a screen under a subfile. In the RPGLE I have

          Code:
          C                   Write     SFLFTR                              
          C                   Exfmt     SFL1CTL                             
          C                   Read      SFLFTR
          FLDA1 in the one giving me problems. Everything else works correctly.

          Comment


          • #6
            Re: Weird DSPATR problem

            I recreated it and it all highlights for me...
            now I dont have your subfile and control record
            so I can only exfmt on the footer...


            looks fine to me. sorry!!!
            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