RATE THIS ANSWER
0
Click to Vote:
0
0
Hi,
Try specifying SFLRCDNBR(CURSOR) in your DDS.
Regards,
Martin Gilbert.
Hi,
SFLRCDNBR is defined with a field (i use TOP) to carry the relative record number of the subfile record you want to display. When control returns to your program (enter or a command key) you can detect the subfile record number at the top of the current page. (file information data structure has it).
I usually set the value after the subfile is displayed.
If you edit the subfile and detect an error, you can set the relative record number of the error so the page containing the error will be displayed.
you can place the offending record at the TOP of the page with SFLRCDNBR(CURSOR *TOP)
Good Luck.
PGMBOB
Last Answered:
Jul 9 2008 2:59 AM GMT by PGMBOB 
155 pts.
Latest Contributors: Gilly400
23625 pts.