1010 REM By: Melvin O. Duke. Updated 26 June, 1983.
1020 REM Routine to obtain Printer Information
1030 LOCATE 21,1 : PRINT "Make sure that the Printer is on and Ready"
1040 LOCATE 22,1 : PRINT "Make sure that the correct Diskettes are in place."
1050 LOCATE 23,1 : PRINT "Then press any key"
1060 A$ = INKEY$ : IF A$ = "" THEN 1060
1070 CLS
1080 REM reset all Printer Defaults
1090 'LPRINT CHR$(18); 'Normal Printing
1100 'LPRINT CHR$(27)"9"; 'Paper Sensing ON
1110 WIDTH "lpt1:", 132 'For printing Genealogy Forms
1120 REM Ask User about his Printer
1130 LOCATE 20,1 : PRINT "How Wide is the Paper";
1140 LOCATE 21,3 : COLOR 0,7 : PRINT "1"; : COLOR 7,0
1150 LOCATE 21,6 : PRINT "8 - 1/2 inches";
1160 LOCATE 22,3 : COLOR 0,7 : PRINT "2"; : COLOR 7,0
1170 LOCATE 22,6 : PRINT "14 inches";
1180 LOCATE 23,1 : PRINT SPACE$(79);
1190 LOCATE 23,1 : INPUT "Enter 1 or 2"; REPLY$
1200 REM verify input
1210 IF VAL(REPLY$) = 1 OR VAL(REPLY$) = 2 THEN 1240
1220 LOCATE 19,1 : PRINT "Error in Previous Reply";
1230 GOTO 1130
1240 LOCATE 19,1 : PRINT SPACE$(79);
1250 LOCATE 20,1 : PRINT SPACE$(79);
1260 LOCATE 21,1 : PRINT SPACE$(79);
1270 LOCATE 22,1 : PRINT SPACE$(79);
1280 LOCATE 23,1 : PRINT SPACE$(79);
1290 WIDE = VAL(REPLY$)
1300 LOCATE 3,1
1310 IF WIDE = 1 THEN PRINT "Using 8-1/2 inch width paper"; : GOTO 1330
1320 PRINT "Using 14 inch width paper";
1330 LOCATE 20,1 : PRINT "How Long is the Paper";
1340 LOCATE 21,3 : COLOR 0,7 : PRINT "1"; : COLOR 7,0
1350 LOCATE 21,6 : PRINT "8 - 1/2 inches";
1360 LOCATE 22,3 : COLOR 0,7 : PRINT "2"; : COLOR 7,0
1370 LOCATE 22,6 : PRINT "11 inches";
1380 LOCATE 23,1 : PRINT SPACE$(79);
1390 LOCATE 23,1 : INPUT "Enter 1 or 2"; REPLY$
1400 REM verify input
1410 IF VAL(REPLY$) = 1 OR VAL(REPLY$) = 2 THEN 1440
1420 LOCATE 19,1 : PRINT "Error in Previous Reply";
1430 GOTO 1330
1440 LOCATE 19,1 : PRINT SPACE$(79);
1450 LOCATE 20,1 : PRINT SPACE$(79);
1460 LOCATE 21,1 : PRINT SPACE$(79);
1470 LOCATE 22,1 : PRINT SPACE$(79);
1480 LOCATE 23,1 : PRINT SPACE$(79);
1490 LENGTH = VAL(REPLY$)
1500 LOCATE 5,1
1510 IF LENGTH = 1 THEN PRINT "Using 8-1/2 inch length paper"; : GOTO 1530
1520 PRINT "Using 11 inch length paper";
1530 LOCATE 20,1 : PRINT "Describe the Forms to be Used";
1540 LOCATE 21,3 : COLOR 0,7 : PRINT "1"; : COLOR 7,0
1550 LOCATE 21,6 : PRINT "Continuous";
1560 LOCATE 22,3 : COLOR 0,7 : PRINT "2"; : COLOR 7,0
1570 LOCATE 22,6 : PRINT "Single Sheets";
1580 LOCATE 23,1 : PRINT SPACE$(79);
1590 LOCATE 23,1 : INPUT "Enter 1 or 2"; REPLY$
1600 REM verify input
1610 IF VAL(REPLY$) = 1 OR VAL(REPLY$) = 2 THEN 1640
1620 LOCATE 19,1 : PRINT "Error in Previous Reply";
1630 GOTO 1530
1640 LOCATE 19,1 : PRINT SPACE$(79);
1650 LOCATE 20,1 : PRINT SPACE$(79);
1660 LOCATE 21,1 : PRINT SPACE$(79);
1670 LOCATE 22,1 : PRINT SPACE$(79);
1680 LOCATE 23,1 : PRINT SPACE$(79);
1690 FORMS = VAL(REPLY$)
1700 LOCATE 7,1
1710 IF FORMS = 1 THEN PRINT "Using Continuous Forms"; : GOTO 1730
1720 PRINT "Using Single Sheets";
1730 LOCATE 20,1 : PRINT "Is the above information correct?"
1740 LOCATE 21,1 : INPUT "Enter 'y' or 'n' for 'yes' or 'no'"; REPLY$
1750 IF LEFT$(REPLY$,1) = "y" OR LEFT$(REPLY$,1) = "Y" THEN 1760 ELSE 1070
1760 CLS
1770 REM By: Melvin O. Duke. Updated December 1982.
1780 REM Read the Marriage Index
1790 LOCATE 7,1 : PRINT "Open the Marriage Index";
1800 OPEN "a:mindex" FOR INPUT AS #2
1810 INPUT #2, M.COUNT
1820 FOR I = 1 TO M.COUNT
1830 LOCATE 8,1 : PRINT "Reading Marriage Index Record #:";I:
1840 INPUT #2,PERS.NO(I), M.NO(I)
1850 NEXT I
1860 CLOSE #2
1870 REM Open the Persons File
1880 LOCATE 10,1 : PRINT "Open the Persons File"
1890 OPEN "a:persfile" AS #1 LEN = 256
1900 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$
1910 REM open the Marriages File
1920 LOCATE 12,1 : PRINT "Open the Marriage File"
1930 OPEN "a:marrfile" AS #2 LEN = 128
1940 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$
1950 REM Obtain a Person Record from the User
1960 LOCATE 20,1 : INPUT "Enter the Record-number of a Person";PERS(1)
1970 IF PERS(1) = 0 THEN 6570
1980 IF PERS(1) < 1 OR PERS(1) > 400 THEN CLS: GOTO 1950
1990 REM
2000 REM Reset the Printer characteristics for next page if required.
2010 IF FORMS = 1 THEN 2050 'Don't stop if forms are continuous
2020 REM process single sheets
2030 PRINT "Press any key when next form is ready"