| I've seen something like what you want done, but the arrow keys
are not used to scroll, instead you must use Focus' "Hot Screen"
capability - PF7 scrolls backward, PF8 scrolls forward, and PF6
would be used to select the desired name. Once selected another
report would be run to get the detailed info. The routine I saw
is as follows:
-* Generate a TABLE request to select initial data
TABLE FILE CAR
PRINT CAR AS 'VEHICLE'
MODEL AS 'MODEL'
FOOTING CENTER
" ***************************************************"
"POSITION THE CURSOR ON THE FIRST LETTER OF THE VEHICLE"
"TO BE USED FOR YOUR DETAILED REPORT AND PRESS PF6."
"AFTER YOUR SELECTIONS ARE MADE, POSITION CURSOR ON"
"BLANKS AND PRESS PF6. PRESS ENTER TO CONTINUE"
""
"PRESS PF8 TO SCROLL FORWARD, PF7 TO SCROLL BACKWARD"
""
"PRESS PF3 TO EXIT. PRESS PF1 FOR HELP."
" ****************************************************"
END
-* Execute the stack
-RUN
-* Create a contorl loop to read the save file data"
-* (Save file = SAVE.FTM)
-XLOOP
-READ SAVE &CAR.A16. &FILL.A2. &MODEL.A24.
-IF &CAR EQ ' ' THEN GOTO XPASS
-* Detailed TABLE request
TABLE FILE CAR
HEADING CENTER
"VEHICLE:<CAR MODEL:<MODEL"
""
PRINT DEALER_COST AS 'DEALER COST:' OVER
RETAIL_COST AS 'RETAIL COST:' OVER
SALES AS 'SALES (YTD):' OVER
BODYTYPE AS 'BODYTYPE:'
ON CAR PAGE-BREAK
IF CAR EQ '&CAR'
IF MODEL EQ '&MODEL'
END
-* Return to top of loop
-GOTO XLOOP
-* Execute the TABLE request and erase the SAVE file
-XPASS
-RUN
-VMS DELETE SAVE.FTM;
-EXIT
I got this out of a Focus Systems Journal, and it will need changes
for what you want to do, but I don't think it would be a problem
adapting it. Maybe it can be of help.
Regards,
Mike Cusack
G&A Purchasing IS
Northboro, MA
DTN 234-4764
|