+ Reply to Thread
Results 1 to 5 of 5

Thread: Subfile display problem

  1. #1

    Default Subfile display problem

    It would help if you posted some code. Dave

  2. #2
    Guest.Visitor Guest

    Default Subfile display problem

    It appears to me that your page up routine is something like this:
    C FirstRcd SetLL File
    C1DoSflPag RRN
    C ReadP File
    C If%eof
    C Leave
    C Else
    C Write Sfl
    C Endif
    C EndDo
    In otherwords, you are reading backwards but filling the subfile forwards. You have two options; you can read backwards the number of records in a page of the subfile and then fill the subfile reading forwards, or you can fill the subfile backwards as you are reading backwards. Examples follow:
    C FirstRcd SetLL File
    C 0 DoSflPag
    C ReadP File
    C EndDo
    C If%eof(File)
    C*LoValSetll File
    C Endif
    C 1DoSflPag RRN
    C ReadFile
    C If%eof
    C Leave
    C Else
    C Write Sfl
    C Endif
    C Enddo
    C FirstRcd SetLL File
    C 1DoSflPag x
    C ReadP File
    C If%eof
    CLeave
    CElse
    C Eval RRN = SflPag -x + 1
    C Write Sfl
    C Endif
    C EndDo

  3. #3
    Guest.Visitor Guest

    Default Subfile display problem

    You dont need to do a readp for doing page up. Subfile records once filled are still stored in the subfile, until you clear the subfile records. Simple pageup will bring you back the records that are already filled. Remove the codes for rebuilding the subfile using readp. Add records only during page-down. Hope this helps. Elan

  4. #4
    mamadou_toure@yahoo.com Guest

    Default Subfile display problem

    Hi, My problem is the following I have a subfile which is loade normally (one page a time), when i perform a page up, the next page is displayed, but when i perform a page down, the first page is displayed but in reverse order . For instance if i have on the first page 1 2 3 and in the second page 4 5 6 If i perform a page dow, the first page is displayed like this : 3 2 1 Please help Kind regards Mamadou

  5. #5
    mamadou_toure@yahoo.com Guest

    Default Subfile display problem

    Thanks a lot for your help . I finally find why my subfile was reversed, it was because i used indicators for conditionning some fields . Regards Mamadou TOURE

+ Reply to Thread

Similar Threads

  1. How to display many subfile columns
    By gmoiselle in forum RPG
    Replies: 3
    Last Post: 08-22-2008, 02:31 AM
  2. Replies: 1
    Last Post: 03-03-2004, 06:40 AM
  3. Subfile display problem
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 04-20-2001, 09:35 AM
  4. subfile page to display
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 11-04-1999, 08:15 AM
  5. Subfile Display on Entry Screen
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts