XTR.TOPINDEX = 1 ! [200] activate feature and start on row 1
do
xcall XTREE,SROW,SCOL,ANSWERX,XTREE'DATA(1 ),MAXCHOICE,COLDEF$, &
EXITCODE,EROW,ECOL,XTFLAGS,"",XTREE'MMOCLR,XTR
XTR.OPCODE = XTROP_RESELECT ! after initial create, default will be just to reselect
if EXITCODE = -301 then ! [200] Page forward +10 rows
XTR.TOPINDEX = (XTR.TOPINDEX + 10) min MAXCHOICE
XTR.TARGETROW = XTR.TOPINDEX
repeat
endif
if EXITCODE = -302 then ! [200] Page back -10 rows
XTR.TOPINDEX = (XTR.TOPINDEX - 10) max 1
XTR.TARGETROW = XTR.TOPINDEX
repeat
endif
...