It would help if you posted some code. Dave
It would help if you posted some code. Dave
It appears to me that your page up routine is something like this:C FirstRcd SetLL FileC1DoSflPag RRNC ReadP FileC If%eofC LeaveC ElseC Write SflC EndifC EndDoIn 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 FileC 0 DoSflPagC ReadP FileC EndDoC If%eof(File)C*LoValSetll FileC EndifC 1DoSflPag RRNC ReadFileC If%eofC LeaveC ElseC Write SflC EndifC EnddoC FirstRcd SetLL FileC 1DoSflPag xC ReadP FileC If%eofCLeaveCElseC Eval RRN = SflPag -x + 1C Write SflC EndifC EndDo
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
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
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