Debian Codegraph @

reports/familyisfm1.ll

raw
1 /*
2 * @progname familyisfm1.ll
3 * @version 1.0
4 * @author Wetmore, Manis
5 * @category
6 * @output Text, 132 cols
7 * @description
8 *
9 * It will produce a report of all the INDI's in the database,
10 * in the format as seen at end of report. May be sorted easily
11 * to see the Father or Mother column sorted report.
12 * The report name come from: isfm (Indi Spouse Father Mother)
13 * It is designed for 16 pitch, HP laserjet III, 132 column
14 * (ASCII output).
15 *
16 * familyisfm1
17 *
18 * Code by Tom Wetmore, [email protected]
19 * Modifications by Cliff Manis
20 *
21 * This report works only with the LifeLines Genealogy program
22 *
23 * version one of this report was written by Tom Wetmore, in 1991,
24 * and it has been modified many times since.
25 *
26 */
27
28
29 /*
30 * familyisfm1
31 */
32
33 proc main ()
34 {
35 indiset(idx)
36 forindi(indi,n) {
37 addtoset(idx,indi,n)
38 print(d(n)) print(" ")
39 }
40 print(nl())
41 print("begin sorting") print(nl())
42 namesort(idx)
43 print("done sorting") print(nl())
44 col(1) "INDEX OF ALL PERSONS IN DATABASE"
45 col(1) "Individual"
46 col(34) "Brth"
47 col(39) "Deat"
48 col(44) "First Spouse"
49 col(75) "Father"
50 col(106) "Mother"
51 col(1) "----------------------------------------"
52 "----------------------------------------"
53 "----------------------------------------"
54 forindiset(idx,indi,v,n) {
55 col(1) fullname(indi,1,0,29)
56 col(34) year(birth(indi))
57 col(39) year(death(indi))
58 if(gt(nspouses(indi), 0)) {
59 spouses(indi, spou, fam, n) {
60 if (eq(1,n)) {
61 col(44) fullname(spou,1,0,29)
62 }
63 }
64 }
65 if(fath,father(indi)) {
66 col(75) fullname(fath,1,0,29)
67 }
68 if(moth,mother(indi)) {
69 col(106) fullname(moth,1,0,29)
70 }
71 }
72 nl()
73 print(nl())
74 }
75
76 /* Sample output of this report.
77
78 INDEX OF ALL PERSONS IN DATABASE
79 Individual Brth Deat First Spouse Father Mother
80 ------------------------------------------------------------------------------------------------------------------------
81 CUNNINGHAM, Margaret COLQUHOUN, Sir_John
82 DE_COLQUHOUN, Sir_Humphry 1280 1330 DE_COLQUHOUN, Sir_Ingelramus
83 DE_COLQUHOUN, Sir_Ingelramus 1250 DE_COLQUHOUN, Sir_Robert
84 DE_COLQUHOUN, Sir_Robert 1310 1390 ____, Lady_of_Luss DE_COLQUHOUN, Sir_Humphry
85 DE_COLQUHOUN, Sir_Robert 1220 1280 DE_KILPATRICK, Umfridus
86 DE_KILPATRICK, Umfridus 1190 1260
87 DENTON, Denise Marie 1955 MANESS, Marion
88 DOUGLAS, Archibald DUNBAR, Elizabeth
89 DUNBAR, Elizabeth 1485 DOUGLAS, Archibald DUNBAR, James
90 HAMILTON, Judith 1662 CALHOUN, Alexander
91
92 */
93
94 /* End of Report */
95