2150 LOCATE 9,53 : COLOR 1 : PRINT "Birth Location:"; : COLOR 7
2160 RETURN
2170 REM Subroutine to draw a double horizontal line. Attach to double.
2180 FOR J = C1 + 1 TO C2 - 1
2190 LOCATE R1,J : PRINT CHR$(205);
2200 NEXT J
2210 LOCATE R1,C1 : PRINT CHR$(204);
2220 LOCATE R1,C2 : PRINT CHR$(185);
2230 RETURN
2240 REM Subroutine to draw a single horizontal line. Attach to double.
2250 FOR J = C1 + 1 TO C2 - 1
2260 LOCATE R1,J : PRINT CHR$(196);
2270 NEXT J
2280 LOCATE R1,C1 : PRINT CHR$(199);
2290 LOCATE R1,C2 : PRINT CHR$(182);
2300 RETURN
2310 REM Subroutine to draw a double vertical line. Attach to double.
2320 FOR I = R1 + 1 TO R2 - 1
2330 LOCATE I,C1 : PRINT CHR$(186);
2340 NEXT I
2350 LOCATE R1,C1 : PRINT CHR$(203);
2360 LOCATE R2,C1 : PRINT CHR$(202);
2370 RETURN
2380 REM Subroutine to draw a single vertical line. Attach to double.
2390 FOR I = R1 + 1 TO R2 - 1
2400 LOCATE I,C1 : PRINT CHR$(179);
2410 NEXT I
2420 LOCATE R1,C1 : PRINT CHR$(209);
2430 LOCATE R2,C1 : PRINT CHR$(207);
2440 RETURN
2450 REM Program begins here
2460 REM By: Melvin O. Duke. Updated December 1982
2470 REM Read the Parent/Child Index
2480 OPEN "a:pcindex" FOR INPUT AS #1
2490 LOCATE 4,1 : PRINT "Open the Parent/Child Index";
2500 INPUT #1, PC.COUNT
2510 FOR I = 1 TO PC.COUNT
2520 LOCATE 5,1 : PRINT "Reading Index Record #:";I;
2530 INPUT #1, PA.ID(I), CH.ID(I)
2540 NEXT I
2550 CLOSE #1
2560 REM Read the Marriage Index
2570 LOCATE 7,1 : PRINT "Open the Marriage Index";
2580 OPEN "a:mindex" FOR INPUT AS #2
2590 INPUT #2, M.COUNT
2600 FOR I = 1 TO M.COUNT
2610 LOCATE 8,1 : PRINT "Reading Marriage Index Record #:";I:
2620 INPUT #2,PERS.NO(I), M.NO(I)
2630 NEXT I
2640 CLOSE #2
2650 REM Open the Persons File
2660 LOCATE 10,1 : PRINT "Open the Persons File"
2670 OPEN "a:persfile" AS #1 LEN = 256
2680 FIELD 1, 5 AS F1$, 20 AS F2$, 30 AS F3$, 2 AS F4$, 5 AS F5$, 5 AS F6$, 5 AS F7$, 11 AS F8$, 18 AS F9$, 16 AS F10$, 16 AS F11$, 11 AS F12$, 18 AS F13$, 16 AS F14$, 16 AS F15$, 11 AS F16$, 18 AS F17$, 16 AS F18$, 16 AS F19$
2690 REM open the Marriages File
2700 LOCATE 12,1 : PRINT "Open the Marriage File"
2710 OPEN "a:marrfile" AS #2 LEN = 128
2720 FIELD 2, 5 AS M1$, 5 AS M2$, 5 AS M3$, 5 AS M4$, 11 AS M5$, 18 AS M6$, 16 AS M7$, 16 AS M8$, 45 AS M9$
2730 REM Open the Ordinance File
2740 LOCATE 14,1 : PRINT "Open the Ordinances File";
2750 OPEN "b:ordfile" AS #3 LEN = 256
2760 FIELD 3,5ASO1$,11ASO2$,11ASO3$,11ASO4$,5ASO5$,5ASO6$,11ASO7$,11ASO8$,11ASO9$,11ASO10$,11ASO11$,5ASO12$,11ASO13$,11ASO14$,11ASO15$,11ASO16$,11ASO17$,11ASO18$,11ASO19$,11ASO20$,11ASO21$,11ASO22$,11ASO23$,26ASO24$
2770 REM Obtain a Person Record from the User
2780 LOCATE 20,1 : PRINT SPACE$(79);
2790 LOCATE 20,1 : INPUT "Enter the Record-number of a Person";PERS(1)
2800 IF PERS(1) < 1 OR PERS(1) > 400 THEN CLS: GOTO 2770