ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Another display file window problem

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

  • #16
    Re: Another display file window problem

    My dummy record is on the CLEARDISP format

    Comment


    • #17
      Re: Another display file window problem

      I'll play about with your example tomorrow, for now I'm going to go home in a shocking mood! The girlfriend is in for a happy evening tonight!

      Comment


      • #18
        Re: Another display file window problem

        You should have left the hair on you scalp alone.
        Never trust a dog to watch your food.

        Comment


        • #19
          Re: Another display file window problem

          Take a deep breath and always look out for witnesses
          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


          • #20
            Re: Another display file window problem

            Thanks Jamie, I still can't get my original program to work (if my AS/400 wasn't so darn heavy I'd have thrown it through the window ). But your programs seem to do most of what I need

            Comment


            • #21
              Re: Another display file window problem

              Hum sometimes dds can really get u out of hair

              Would like to add to indicators, RRN problems that sometime occour, isnt this the same error we get when doing an update after or before a write a dspf ?
              Just check also this Chris.

              Or just start over ehehheh dont thrown the as remember ibm's pub? it will still run!
              "It's like a koala pooped a rainbow on my head and I can taste the colors."

              Comment


              • #22
                Re: Another display file window problem

                Ok next question... (sorry I'll buy you guys lots of beers if I ever meet you).

                I want to have a field at the bottom of my window subfile showing either 'More..' or 'Bottom' depending on whether I am displaying the last record in the file or not.

                Are they any keywords to do this, or is it a case of checking what records are displayed on screen etc?

                Comment


                • #23
                  Re: Another display file window problem

                  Review the SFLEND keyword.
                  Never trust a dog to watch your food.

                  Comment


                  • #24
                    Re: Another display file window problem

                    here you go.... as long as sflend is off it will say more.....

                    Code:
                    A  33                                  SFLEND(*MORE)
                    Im gonna hold u to that beer thing.....
                    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


                    • #25
                      Re: Another display file window problem

                      If you want to give them a scroll bar try.

                      Code:
                      A  55                                  SFLEND(*SCRBAR *MORE)
                      Never trust a dog to watch your food.

                      Comment


                      • #26
                        Re: Another display file window problem

                        Thanks the both of you

                        *starts to save up for all the beers he owes*

                        Comment


                        • #27
                          Re: Another display file window problem

                          Originally posted by Sbp0718
                          If you want to give them a scroll bar try.

                          Code:
                          A  55                                  SFLEND(*SCRBAR *MORE)
                          I tried the *SCRBAR out of curiosity, and it semi-worked, my subfile displays 10 records per page, and I have 21 records in my file, it shows the first 2 pages perfectly but when I page down to see the last record it jumps me back to record 1.

                          When I used the mouse to scroll to the bottom it showed me the last records quite happily. I'm not too bothered that it didn't work as it was the More... or Bottom I wanted

                          Comment


                          • #28
                            Re: Another display file window problem

                            Originally posted by ChrisL
                            I tried the *SCRBAR out of curiosity, and it semi-worked, my subfile displays 10 records per page, and I have 21 records in my file, it shows the first 2 pages perfectly but when I page down to see the last record it jumps me back to record 1.

                            When I used the mouse to scroll to the bottom it showed me the last records quite happily. I'm not too bothered that it didn't work as it was the More... or Bottom I wanted
                            Scratch that - Error Code 99

                            (for those who dont know - Error Code 99 = User is a muppet!)

                            Comment


                            • #29
                              Re: Another display file window problem

                              Hey Chris... I code in an error message here that I deal with continuously... it's kinda funny when a store calls in and say "I have an error message that says "**ERROR** ID-10-T: Call Support!"

                              The store personnel has no clue what it means .. but the Support Center certainly does!

                              *cheers*

                              -R

                              Comment


                              • #30
                                Re: Another display file window problem

                                Ours is a "MITCH" error. Monkey in the chair.
                                Never trust a dog to watch your food.

                                Comment

                                Working...
                                X