home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug073.arc
/
GENELOGY.LBR
/
DLNCOUNT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
1KB
|
36 lines
* LNCOUNT.CMD advances to a new page when required for Descendants Chart
* called by DWIFEKID.CMD
* store 2 to temp line counter (mpersnum) to account for parents
* then add to mpersnum for each child
STORE 2 TO mpersnum
IF kid > 0
GO kid
STORE mpersnum+1 TO mpersnum
IF sib > 0
DO WHILE sib > 0
GO sib
STORE mpersnum+1 TO mpersnum
ENDDO
STORE mpersnum+1 TO mpersnum
ENDIF
IF lines+mpersnum+8 > mlength
SET CONSOLE OFF
DO WHILE mlength-lines > 0
?
STORE lines+1 TO lines
ENDDO
STORE 0 TO lines
STORE page+1 TO page
? propnl+"Printed "+date()
?? $(STR(0,130),1,125)+"Page "+STR(page,2)+compr
? spc1+spc4+"1x "+"2x "+"3x "+"4x "+;
"5x "+"6x "+"7x "+"8x"
? spc1+spc4+gt+gt+gt+gt+gt+gt+gt+gt
? spc1+spc3+gd+gd+gd+gd+gd+gd+gd+gd+gd
? "Person "+ch+ch+ch+ch+ch+ch+ch+ch+ch+ch
? fence
STORE lines+6 TO lines
SET CONSOLE ON
ENDIF
ENDIF