home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
DATABASE
/
LEDGERS.LBR
/
LENTRY.CZD
/
LENTRY.CMD
Wrap
OS/2 REXX Batch file
|
2000-06-30
|
2KB
|
80 lines
NOTE * Program...: LENTRY.CMD
NOTE * Version...: 2.0
NOTE * Author....: Terry Hazen
NOTE * Date......: 02/02/85
NOTE * Notice....: Copyright (c) 1985, n/SYSTEMS
STORE ' ' TO lmenu
STORE ' ' TO lok
DO WHILE T
@ 18,00 SAY &setoend
@ 19,07 SAY ' A - Add Entries '
@ 19,30 SAY ' S - Search '
@ 19,53 SAY ' L - View Last Page '
@ 20,07 SAY ' E - Edit Entries '
@ 20,53 SAY ' N - View Next Page '
@ 21,29 SAY '<RET> to Main Menu '
CLEAR GETS
STORE ' ' TO lmenu
@ 23,16 SAY 'Select Choice: ' GET lmenu PICTURE '!'
READ
@ 23,00
CLEAR GETS
DO CASE
CASE lmenu = 'A'
@ 19,07 SAY &srvideo + ' --> ADD ENTRIES ' + &snvideo
@ 23,00
DO ladd
CASE lmenu = 'E'
@ 20,07 SAY &srvideo + ' --> EDIT ENTRIES ' + &snvideo
@ 23,00
DO ledit
CASE lmenu = 'S'
@ 19,30 SAY &srvideo + ' --> SEARCH ' + &snvideo
@ 23,00
DO lsearch
CASE lmenu = 'L'
@ 19,53 SAY &srvideo + ' --> VIEW LAST PAGE ' + &snvideo
@ 23,00
STORE xrecord - 10 TO xrecord
IF xrecord < 1
STORE 1 TO xrecord
ENDI
GOTO xrecord
@ 5,0 SAY '='
DISPLAY WHILE # <= xrecord + 9 OFF FIELDS &lfields
CASE lmenu = 'N'
@ 20,53 SAY &srvideo + ' --> VIEW NEXT PAGE ' + &snvideo
@ 23,00
STORE xrecord + 10 TO xrecord
GO BOTTOM
IF xrecord + 9 > #
SKIP -9
STORE # TO xrecord
ELSE
GOTO xrecord
ENDI
@ 5,0 SAY '='
DISPLAY WHILE # <= xrecord + 9 OFF FIELDS &lfields
CASE lmenu = ' '
@ 21,00
@ 21,28 SAY &srvideo + ' --> MAIN MENU ' + &snvideo + ' '
@ 23,00
RETU
CASE lmenu = 'Q'
@ 21,00
@ 21,28 SAY &srvideo + ' --> QUIT TO dBASEII ' + &snvideo
@ 23,00
SAVE TO lsystem ALL LIKE s*
SAVE TO &tledger ALL LIKE m*
CANCEL
CASE lmenu = 'X'
@ 21,00
@ 21,28 SAY &srvideo + ' --> EXIT TO CP/M ' + &snvideo
@ 23,00
SAVE TO lsystem ALL LIKE s*
SAVE TO &tledger ALL LIKE m*
QUIT
ENDC
ENDD
RETU SKIP -9 STORE # TO xrecord ELSE