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
/
HANDYP10.LBR
/
REMINDER.CZD
/
REMINDER.CMD
Wrap
OS/2 REXX Batch file
|
2000-06-30
|
3KB
|
159 lines
ERAS
USE reminder index reminder
STOR date() to hold
STOR $(hold,1,2) to month
STOR $(hold,7,2) to year
STOR ' ' to option
DO saytoday
SET intensity on
@ 1,0 say 'REMINDERS FOR THE MONTH OF'
@ 1,27 say !(title)
SET intensity off
STOR hold to today
SET intensity on
@ 18,0 say '--------------------------------------------------------------------------------'
SET intensity off
@ 19,0 say 'Enter one of the following single letter commands:'
SET intensity on
@ 20,0 say 'A)dd E)dit F)uture N)ext P)ast Q)uit R)eturn'
STOR 'T' to reminder
DO WHIL reminder='T'
IF !(option)#'A'
GOTO top
STOR $(today,1,2) to hold
FIND &hold
STOR 3 to row
STOR 0 to col
SET intensity off
DO WHIL $(event:date,1,2)=hold .and. .not. eof
@ row,col say event:date
@ row,col+7 say event:desc
STOR row+1 to row
SKIP
IF row=17 .and. col=0
STOR 3 to row
STOR col+40 to col
ENDI
IF col>40
SET colon off
@ 22,0
@ 22,0 say 'More... press RETURN to continue';
get return
READ
SET colon on
STOR 3 to row
STOR 0 to col
DO WHIL row<17
@ row,col
STOR row+1 to row
ENDD
STOR 3 to row
ENDI
ENDD
STOR row to call
ENDI
SET intensity off
@ 21,0 say ' '
WAIT to option
DO CASE
CASE !(option)='A'
STOR ' ' to desc
STOR ' ' to day
@ 22,0
@ 22,0 say 'Event day (DD)';
get day
@ 22,35 say 'Description';
get desc
READ
STOR trim(day) to day
IF len(day)<2
STOR '0'+day to day
ENDI
STOR $(today,1,3)+day to day
IF row<17 .and. col<41
@ row,col say day
@ row,col+7 say desc
STOR row+1 to row
ENDI
GOTO bottom
APPE BLAN
REPL event:date with day,event:desc with desc
@ 22,0
CASE !(option)='E'
GOTO top
FIND &hold
SET intensity on
BROW
PACK
SET date to &today
DO reminder
CASE !(option)='F' .or. !(option)='P'
STOR ' ' to today
@ 22,0
@ 22,0 say 'Please enter month (MM)';
get today
READ
STOR trim(today) to today
IF len(today)=1
STOR '0'+today to today
ENDI
STOR $(today,1,2)+'/01/'+$(holddate,7,2) to today
STOR today to start
SET date to &today
DO saytoday
SET intensity on
@ 1,0
@ 1,0 say 'REMINDERS FOR THE MONTH OF'
@ 1,27 say !(title)
SET intensity off
STOR start to today
STOR 3 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 22,0
CASE !(option)='N'
STOR 3 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 1,0
DO nextdate
STOR today to start
SET date to &today
DO saytoday
SET intensity on
@ 1,0 say 'REMINDERS FOR THE MONTH OF'
@ 1,27 say !(title)
SET intensity off
STOR start to today
STOR $(today,1,2) to hold
FIND &hold
@ 22,0
CASE !(option)='Q'
STOR 'F' to reminder
CASE !(option)='R'
SET date to &holddate
STOR holddate to hold
STOR 3 to row
DO WHIL row<17
@ row,0
STOR row+1 to row
ENDD
@ 1,0
DO saytoday
SET intensity on
@ 1,0 say 'REMINDERS FOR THE MONTH OF'
@ 1,27 say !(title)
SET intensity off
STOR hold to today
STOR $(today,1,2) to hold
@ 22,0
ENDC
ENDD
SET date to &holddate
RETU