*A program to select two different Subfiles *A Booth Martin 11/03 H option(*nodebugio) FTEST00D CF E WORKSTN F SFILE(SFLA:RRN) F SFILE(SFLB:RRNB) FTEST01P IF E K DISK FTEST02P IF E K DISK D RRN
S
4S 0
D RRNB S 4S 0 D TopRec S 4s 0 D SavedStates S Like(States) * .................................................. C EXSR FillSubfileASR C EXSR FillSubfileBSR C DoW *INLR = *Off C write (e) Header C write (e) Footer * set the top of subfile A: * Here you may choose to have subfile A positioned to * either: * 1) The State chosen, * (use RelRcd > 0) * 2) or, the same way as SFLA was when the selection was * made, * (use TopRecIn > 0) * 3) or, always reposition to the beginning of SFLA. * (comment or delete this section) C If Relrcd > 0 C eval TopRec = RelRcd C* If TopRecIn > 0 C* eval TopRec = TopRecIn C else C eval TopRec = 1 C endif C C if FLD = *Blanks C write (e) FMT02 C exfmt FMT01 C Read (e) FMT02 C Read else (e) Footer C write (e) FMT01 C exfmt FMT02 C Read (e) FMT01 C Read (e) Footer C endif C Select * Footer Push button Choices: * end the job C When *INKC or C *INKL C Eval *INLR = *ON * Fill cities subfile: C When C C
RELRCD
FLD > *Blanks
chain (e) SFLA exsr FillSubfileBSR
C EndSL C END * C FillSubfileAsrBegSR * fill SFLA C eval RRN = 0 * Clear subfile & screen, prepare to re-fill or fill: C Eval *IN90=*off C Clear SFLA C Write FMT01 C C C C C C C C C C C C
Not %EOF(Test02P) and States = SavedStates RRNB = RRNB + 1 SFLB Test02P
C Eval NBRRECB = RRNB C RRNB IFLT 5 C eval *IN81 = *on C END C EndSR --------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------Archivo de Pantalla A*%%TS A A A A A A A A A A A* A A A A A A A A A A A A A A A A A A A
A SFLLIN(2) A *DS3 SFLPAG(0012) A SFLSIZ(&NBRREC) A* (CAN NOT USE THIS WITH SFLLIN) SFLSNGCHC A RTNCSRLOC(&REC &FLD) A SFLCSRRRN(&RELRCD) A 90 SFLDSP A 90 SFLDSPCTL A N90 SFLCLR A 91 SFLEND(*SCRBAR *MORE) * USE TOPRECIN OR RELRCD TO SET TOPREC, WHICH SETS THE POSITION A* OF SFLA: A TOPREC 4S 0H SFLRCDNBR(*TOP) A TOPRECIN 5S 0H SFLSCROLL A RELRCD 5S 0H A NBRREC 5S 0P A A A
REC FLD R SFLB
10A 10A
H H SFL
A A A A A A A 80 A 80 A N80 A 81 A A A A A A A A A A A A A A A A A A A A A A A A
5S 0H 5S 0P 10A H 10A H 12A P OVERLAY 3'F3=EXIT F12=RETURN' COLOR(BLU) 20 46'SELECT AS MANY CITIES AS YOU LIKE' COLOR(BLU) 21 46'USE THE SPACE BAR OR MOUSE CLICK' COLOR(BLU) 22 46'TO MAKE YOUR SELECTIONS.' COLOR(BLU) 23
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.