home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
MAIN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
4KB
|
118 lines
* MAIN.CMD Main .CMD File of Family Records
DO WHILE t
RELEASE ALL EXCEPT x*
STORE " " TO moption,mselect,myprnt
ERASE
@ 1,0 SAY "Last Record No. "+xfin
@ 1,27 SAY xinv+"FAMILY RECORDS - MAIN MENU"+xnor
@ 1,65 SAY "Date "+date()
@ 6,25 SAY "<A>dd new, or Edit existing, records"
@ 8,25 SAY "<D>escendants Chart"
@ 10,25 SAY "<F>orebears Tree / Ahnentafel Chart"
@ 12,25 SAY "<G>roup Sheet"
@ 14,25 SAY "<L>ists (various types)"
@ 16,25 say "<U>tility programs"
@ 18,25 SAY '<Q>uit "Family Records" program'
DO WHILE .not. moption$"ADFGLUQ"
@ 21,20 SAY "PRESS KEY of Your Choice < >"
@ 21,46 GET moption picture "!"
READ
ENDDO
CLEAR GETS
DO CASE
CASE moption = "Q"
ERASE
SET CONSOLE OFF
QUIT
OTHERWISE
DO WHILE .NOT. mselect$"M"
ERASE
@ 1,0 SAY "Last Record No. "+xfin
@ 1,65 SAY "Date "+date()
DO CASE
CASE moption = "G"
@ 1,30 SAY xinv+"Group Sheet"+xnor
STORE 'GROUP' TO moption
CASE moption = "D"
@ 1,30 SAY xinv+"Descendants Chart"+xnor
STORE 'DESCEND' TO moption
CASE moption = "F"
@ 1,30 SAY xinv+"Forebears Tree/Chart"+xnor
STORE 'FOREBEAR' TO moption
CASE moption = "L"
@ 1,30 SAY xinv+"Lists (various)"+xnor
CASE moption = "A"
@ 1,30 SAY xinv+'Add/Edit Records'+xnor
DO addedit
STORE " " TO moption
STORE "M" TO mselect
LOOP
case moption = "U"
@ 1,30 say xinv+"Utility Programs"+xnor
do utils
store " " to moption
store "M" to mselect
loop
ENDCASE
IF @($(moption,1,1),"DFL") > 0
IF myprnt = " "
DO WHILE .NOT. myprnt$'PS'
@ 6,25 SAY "To <S>creen or <P>rinter ? < >"
@ 6,53 GET myprnt picture "!"
READ
ENDDO
@ 6,0
CLEAR GETS
ENDIF
IF myprnt = "P"
@ 6,30 SAY "Printer output"
ELSE
@ 6,30 SAY "Screen output"
ENDIF
IF moption = "L"
DO lists
STORE " " TO moption
STORE "M" TO mselect
LOOP
ENDIF
ENDIF
@ 8,20 SAY "OPTIONS - <R>ecord no. known"
@ 10,30 SAY "<N>ame only known"
@ 12,30 SAY "<M>ain menu"
@ 15,20 SAY "PRESS KEY of Your Choice < >"
DO WHILE .not. mselect$"RNM"
@ 15,46 GET mselect picture "!"
READ
ENDDO
CLEAR GETS
DO CASE
CASE mselect = "R"
STORE " " TO mno
@ 18,30 SAY "Record No. ? "
SET CONFIRM ON
DO WHILE VAL(mno) < 1 .OR. VAL(mno) > &xfin
@ 18,43 GET mno
READ
ENDDO
SET CONFIRM OFF
CLEAR GETS
DO &moption
ERASE
STORE " " TO mselect
LOOP
CASE mselect = "N"
DO nomen
DO &moption
ERASE
STORE " " TO mselect
LOOP
ENDCASE
ENDDO
IF mselect = "M"
@ 23,25 SAY "Returning to Main Menu "
STORE "M" TO moption
LOOP
ENDIF
ENDCASE
ENDDO