Debian Codegraph @

reports/hasnotes1.ll

raw
1 /*
2 * @progname hasnotes1.ll
3 * @version 1.1
4 * @author Wetmore, Manis
5 * @category
6 * @output Text
7 * @description
8 *
9 * It will produce a report of all the numbers and names (INDI's)
10 * in the database which have a "NOTE" line at level 1 in the record.
11 * It is designed for 10 or 12 pitch, HP laserjet III, or any
12 * other printer (ASCII output).
13
14 * hasnotes1
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 Sep 1992,
22 *
23 */
24
25 proc main ()
26 {
27 "PERSONS IN THE DATABASE WITH NOTES" nl() nl()
28 forindi (i, n) {
29 set(r, inode(i))
30 set(notfound, 1)
31 fornodes (r, n) {
32 if (and(notfound, eq(0, strcmp("NOTE", tag(n))))) {
33 set(notfound, 0)
34 key(i) col(8) name(i) nl()
35 }
36 }
37 }
38 }
39
40 /* Sample output of report.
41
42 PERSONS IN THE DATABASE WITH NOTES
43
44 I1 Alda Clifford MANIS
45 I2 Fuller Ruben MANES
46 I3 Edith Alberta MANIS
47 I4 William Bowers MANES
48 I5 Cordelia "Corda" F. CANTER
49 I6 William Loyd MANIS
50 (all these INDI's did have a NOTE line)
51
52 */
53
54 /* End of Report */
55