| 1 |
/* |
| 2 |
* @progname bkdes16-1.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Wetmore, Manis |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
* |
| 9 |
* It will produce a report of all descendents of a person, |
| 10 |
* and is presently designed for 16 pitch, HP laserjet III. |
| 11 |
* This report produces an ASCII file, in output format. |
| 12 |
* |
| 13 |
* bkdes16-1 |
| 14 |
* |
| 15 |
* Code by Tom Wetmore, [email protected] |
| 16 |
* Modifications by Cliff Manis |
| 17 |
* |
| 18 |
* This report works only with the LifeLines Genealogy program |
| 19 |
* |
| 20 |
* version one of this report was written by Tom Wetmore, in 1990, |
| 21 |
* and it has been modified many times since. |
| 22 |
* |
| 23 |
*/ |
| 24 |
|
| 25 |
proc main () |
| 26 |
{ |
| 27 |
set (nl,nl()) |
| 28 |
getindi(indi) |
| 29 |
col(10) "Report by: Cliff Manis MANIS / MANES Family History P. O. Box 33937 San Antonio, TX 78265-3937 " |
| 30 |
nl() |
| 31 |
col(10) "Phone: 1-512-654-9912" |
| 32 |
nl() |
| 33 |
col(10) "Date: 27 Jun 1992" |
| 34 |
nl() nl() |
| 35 |
col(10)"DESCENDANTS OF: " name(indi) nl() nl() |
| 36 |
call pout(0, indi) |
| 37 |
} |
| 38 |
proc pout(gen, indi) |
| 39 |
{ |
| 40 |
col(10) print(name(indi)) print(nl()) |
| 41 |
set(ndots, 0) |
| 42 |
while (lt(ndots, gen)) {". " set(ndots, add(1,ndots))} |
| 43 |
"* " name(indi) |
| 44 |
if (e, birth(indi)) {", b. " long(e) } |
| 45 |
nl() |
| 46 |
col(10) spouses(indi,sp,fam,num) { |
| 47 |
set(ndots, 0) |
| 48 |
col(10) while (lt(ndots, gen)) {" " set(ndots,add(1,ndots))} |
| 49 |
" m. " name(sp) nl() |
| 50 |
} |
| 51 |
set(next, add(1,gen)) |
| 52 |
if (lt(next,15)) { |
| 53 |
families(indi,fam,sp,num) { |
| 54 |
children(fam, child, no) { |
| 55 |
call pout(next, child) |
| 56 |
} |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
/* end of report */ |
| 62 |
|