home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug104.arc
/
MEMO.LQR
/
MEMO.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
4KB
|
129 lines
* MEMO.CMD
* MEMO PROGRAM
* WRITTEN BY STEVE SOWDEN 01/01/85
*
SET TALK OFF
SET COLON OFF
USE memo
INDEX ON date TO mdate
USE memo INDEX mdate
DO WHILE T
RELEASE ALL
STOR T TO go
STOR 1 TO Mno
STOR STR(Mno,1) TO Mnum
STOR 4 TO Mx
STOR " " TO Mdate
STOR " " TO Mname
STOR " " TO Mm1,Mm2,;
Mm3,Mm4,Mm5,Mm6,Mm7,Mm8,Mm9,Mm10,Mm11,Mm12,Mm13,Mm14,Mm15
ERASE
@ 10,15 SAY "Enter date for memo, RETURN for today or (Q)uit"
@ 12,35 SAY " " GET Mdate PICT "!9/99/99"
@ 20,14 SAY "ENTER A (/) AT THE BEGINNING OF A LINE TO END MEMO"
READ
IF $(Mdate,1,1) = "Q"
ERASE
SET COLON OFF
RELEASE ALL
RETURN
ENDIF
IF $(Mdate,1,1) = " "
STOR DATE() TO Mdate
ENDIF
*
FIND &Mdate
*
ERASE
IF # <> 0
@ 1,30 SAY "MEMO FOR " + date
@ 1,60 SAY "NAME " + name
@ 2,0 SAY "------------------------------------------------------;
--------------------------"
@ 21,14 SAY "ENTER A (/) AT THE BEGINNING OF A LINE TO END MEMO"
SET COLON ON
DO WHILE Mno <= 15
IF $(m&Mnum,1,1) <> "/"
@ Mx,10 SAY "> " + " " + m&Mnum
STOR Mx + 1 TO Mx
STOR Mno + 1 TO Mno
IF Mno > 9
STOR STR(Mno,2) TO Mnum
ELSE
STOR STR(Mno,1) TO Mnum
ENDIF
ELSE
STOR 16 TO Mno
ENDIF
ENDDO
STOR date TO Mdate
STOR name TO Mname
ELSE
APPEND BLANK
@ 21,14 SAY "ENTER A (/) AT THE BEGINNING OF A LINE TO END MEMO"
@ 1,30 SAY "MEMO FOR " + Mdate
@ 1,60 SAY "NAME " GET name PICT "!!"
@ 2,0 SAY "-----------------------------------------------------;
---------------------------"
SET COLON ON
DO WHILE Mno <= 15
@ Mx,10 SAY "> " GET m&Mnum
READ NOUP
IF $(m&Mnum,1,1) <> "/"
STOR Mx + 1 TO Mx
STOR Mno + 1 TO Mno
IF Mno > 9
STOR STR(Mno,2) TO Mnum
ELSE
STOR STR(Mno,1) TO Mnum
ENDIF
ELSE
STOR 16 TO Mno
ENDIF
ENDDO
REPL date WITH Mdate
ENDIF
SET COLON OFF
DO WHILE go
@ 23,24 SAY "(C)hange (D)elete (Q)uit memo"
SET CONS OFF
WAIT TO select
SET CONS ON
STOR !(select) TO select
IF select = "D"
DELETE
PACK
ENDIF
IF select = "C"
IF Mnum <> "16"
REPL m&Mnum WITH Mm&Mnum NOUP
ENDIF
STOR 4 TO Mx
STOR 1 TO Mno
STOR STR(Mno,1) TO Mnum
@ 1,38 SAY " " GET date PICT "99/99/99"
@ 1,64 SAY " " GET name PICT "!!"
READ
SET COLON ON
DO WHILE Mno <= 15
@ Mx,10 SAY "> " GET m&Mnum
READ NOUP
IF $(m&Mnum,1,1) <> "/"
STOR Mx + 1 TO Mx
STOR Mno + 1 TO Mno
IF Mno > 9
STOR STR(Mno,2) TO Mnum
ELSE
STOR STR(Mno,1) TO Mnum
ENDIF
ELSE
STOR 16 TO Mno
ENDIF
ENDDO
SET COLON OFF
ELSE
STOR F TO go
ENDIF
ENDDO
ENDDO
êm═_n> 2ém!çm»7Äw╥°m+┬∞m:émµG!çm~µ■░w!äm