Debian Codegraph @

reports/index1.ll

raw
1 /*
2 * @progname index1.ll
3 * @version 1.0
4 * @author Wetmore, Manis
5 * @category
6 * @output Text
7 * @description
8 *
9 * This program produces a report of all INDI's in the database, with
10 * sorted names as output.
11 * It is presently designed for 12 pitch, HP laserjet III,
12 * for printing a index of person in the database (ASCII output).
13 *
14 * index1
15 *
16 * Code by Tom Wetmore, [email protected]
17 * Modifications by Cliff Manis
18 *
19 * This report works only with the LifeLines Genealogy program
20 *
21 * version one of this report was written by Tom Wetmore, in 1990,
22 * and it has been modified many times since.
23 *
24 */
25
26 proc main ()
27 {
28 indiset(idx)
29 monthformat(4)
30 forindi(indi,n) {
31 addtoset(idx,indi,n)
32 print(".")
33 }
34 print(nl()) print("indexed ") print(d(n)) print(" persons.")
35 print(nl())
36 print(nl())
37 print("begin sorting") print(nl())
38 namesort(idx)
39 print("done sorting") print(nl())
40
41 col(1) "======================================================================" nl()
42 col(16) "INDEX OF ALL PERSONS IN DATABASE" nl()
43 col(1) " " nl()
44 col(1) " " nl()
45 col(1) "LAST, First Index # Birthdate Deathdate" nl()
46 col(1) "-------------------------------- -------- ------------ ------------" nl()
47
48 forindiset(idx,indi,v,n) {
49 col(1) fullname(indi,1,0,30)
50 col(35) key(indi)
51 col(44) stddate(birth(indi))
52 col(60) stddate(death(indi))
53 print(".")
54 }
55 nl()
56 print(nl())
57 }
58
59 /* End of Report */
60