1570 COLUR$="R":GOSUB3700:LOCATE21,15:Z$="":INPUT"Report to Screen or Printer, or Quit (S,P,Q)";Z$:IFZ$="S"ORZ$="s"THEN2210 ELSEIFZ$="P"ORZ$="p"THEN1600 ELSE1890
1770 LPRINTTAB(40);LEFT$(UNDLN$,23):LPRINTTAB(28);"GRAND TOTAL ";:LPRINTUSINGFRMAT$;GP!;:LPRINT" ";:LPRINTUSINGFRMAT$;GV!:LPRINTTAB(40);LEFT$(UNDLN$,23):FORI=1TO20:LPRINT:NEXTI:GOSUB3870:RCRDNO=1:GOSUB4770:GOSUB5090
2360 GOSUB2480:LOCATE18,40:PRINTSUNDLN$:LOCATE19,21:PRINT"GRAND TOTAL .......";:PRINTUSINGFRMAT$;GP!;:PRINT" ";:PRINTUSINGFRMAT$;GV!:LOCATE20,40:PRINTSUNDLN$:GOSUB2760:GOTO2450
2670 LOCATE1,22:PRINT" INVENTORY OF HOUSEHOLD CONTENTS":LOCATE2,30:PRINT"ROOM: ";RM$;SPACE$(27);"PAGE: ";:PGNO=PGNO+1:PRINTUSING"##";PGNO:IFHDGON$="N"THEN2735
2710 LOCATE4,1:PRINT" QTY DESCRIPTION PAID YEAR VALUE SERIAL NO.":LOCATE5,1:PRINT" SOUNDSOUNDSOUND SOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUND SOUNDSOUNDSOUNDSOUND SOUNDSOUNDSOUNDSOUND ";:PRINT"SOUNDSOUNDSOUNDSOUNDSOUND SOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUND":GOTO2740
2735 LOCATE4,1:PRINT" PAID VALUE ":LOCATE5,1:PRINT" SOUNDSOUNDSOUNDSOUND ";:PRINT"SOUNDSOUNDSOUNDSOUNDSOUND
2740 HDGON$="Y":PLN=5:RETURN
2760 LOCATE25,20:PRINT"Press any key to continue OR <ESC> to end";:Z$="
3130 COLORFRGRND,BKGR:CLS:LOCATE1,1:PRINTLIN$(1):PRINTLIN$(2):PRINTLIN$(3):LOCATE6,1:PRINT"KEYTHENTHENTHEN<0xCB!>THENTHENTHENCLOSE":LOCATE7,1:PRINT"OPENF1 OPENF2 OPEN F1 - Help - displays this Help screen
3170 LOCATE 8,1:PRINT"TOTHENTHENTHENTAB(THENTHENTHENRANDOMIZE F2 - End session - closes the file with your changes, ends the run":LOCATE 9,1:PRINT"OPENF3 OPENF4 OPEN F3 - Erase to end - erases data from cursor to end of field
3190 LOCATE 10,1:PRINT"TOTHENTHENTHENTAB(THENTHENTHENRANDOMIZE F4 - Restore screen - loads all data fields with their old contents":LOCATE 11,1:PRINT"OPENF5 OPENF6 OPEN F5 - Find first - specify search key to find a record
3210 LOCATE 12,1:PRINT"TOTHENTHENTHENTAB(THENTHENTHENRANDOMIZE F6 - Find next - find the next record with the same key":LOCATE 13,1:PRINT"OPENF7 OPENF8 OPEN F7 - Sort file - sorts file into Room/Item order
3230 LOCATE 14,1:PRINT"TOTHENTHENTHENTAB(THENTHENTHENRANDOMIZE F8 - Report - report to screen/printer items in all rooms":LOCATE 15,1:PRINT"OPENF9 OPENF10OPEN F9 - Backward - display previous record in file
3250 LOCATE 16,1:PRINT"SCREENTHENTHENTHENLOCATETHENTHENTHENLOAD F10- PROCESS / Forward - act on Process option (Add,Browse,Change,":LOCATE 17,39:PRINT "Delete) / display next record in the file":LOCATE 18,3:PRINT"PROCESS OPTIONS :"
3270 LOCATE 19,3:PRINT " Add(A) : adds new records to end of file when F10 is pressed."
3280 LOCATE 20,3:PRINT " Browse(B) : displays contents of current record."
3290 LOCATE 21,3:PRINT " Change(C) : effects changes made to current record when F10 is pressed."
3310 LOCATE 22,3:PRINT " Delete(D) : deletes current record when F10 is pressed."
3340 Z$=INKEY$:IF Z$=""THEN 3340
3350 CLS:RETURN
3380 GOSUB4390
3390 LOCATE 10,48:PRINT SPACE$(8);:LOCATE 10,48:INPUT FILNME$:IF RIGHT$(FILNME$,4)=".BAK"THEN GOSUB 4390:LOCATE 16,21:PRINT"*** CANNOT USE .BAK FILES AS INPUT ***":GOTO 3390
3400 BAD = 0:FOR X =1 TO LEN(FILNME$) : IF ASC(MID$(FILNME$,X,1)) < 65 THEN BAD = BAD +1 ELSE IF ASC(MID$(FILNME$,X,1) > 90 THEN BAD = BAD +1 : NEXT
3402 IF BAD > 0 THEN BEEP: LOCATE 11,1:PRINT SPC(45) : LOCATE 11,15:PRINT "Filename should be alphabetic characters only" : GOTO 3390
3410 IFFILNME$=""THENFILNME$="HOME.TXT
3412 IF LEN(FILNME$) < 4 THEN BEEP : LOCATE 11,19:PRINT "Filename must be 4 or more letters long": GOTO 3390
3415 IF MID$(FILNME$,LEN(FILNME$)-3,1)="."THEN BAKFL$=LEFT$(FILNME$,LEN(FILNME$)-4)+".BAK" ELSE BAKFL$=FILNME$+".BAK
3420 ON ERROR GOTO 3570
3430 OPEN FILNME$ FOR INPUT AS #1
3440 CLOSE:ON ERROR GOTO 0
3460 OPEN FILNME$ AS #1 LEN=85:FIELD #1, 1 AS XDELIND$, 8 AS XROOM$, 4 AS XQTY$, 35 AS XITEM$, 15 AS XSERIAL$:FIELD #1, 63 AS XFILL1$, 6 AS XPAID$, 6 AS XVALUE$, 2 AS XBOTYR$:FIELD #1, 77 AS XFILL2$, 4 AS XTAX$, 4 AS XDLIV$:FIELD #1, 85 AS XRCRD1$
3920 LIN$(1)=LEFT$(BLNK$,19)+" STRING$SOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDWRITE":LIN$(2)=LEFT$(BLNK$,19)+" OPEN HOME INVENTORY OPEN":LIN$(3)=LEFT$(BLNK$,19)+" NOTSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDMERGE":LIN$(5)=LEFT$(BLNK$,19)+" Process Options:
4130 LIN$(23)=" F1-Help F2-End session F3-Erase to end F4-Restore screen F5-Find first ":LIN$(24)=" F6-Find next F7-Sort file F8-Report F9-Backward F10-PROCESS / Forward":MESSGE$(1)=" End Session - Are you sure (Y/N)?
4160 MESSGE$(2)=" FIND: Key in first few characters of Item ":MESSGE$(3)=" Press Return key ("+CHR$(17)+CHR$(196)+CHR$(196)+CHR$(217)+") ":MESSGE$(4)=" Device Error - Press Esc ":MESSGE$(5)=" Cannot add - max. records is 500
4200 MESSGE$(6)=" ADDED ":MESSGE$(7)=" CHANGED ":MESSGE$(8)=" DELETED ":MESSGE$(9)=" Press F10 to process when ready ":MESSGE$(10)=" Sort in progress ":MESSGE$(11)=" Sort & Report in progress ":MESSGE$(12)=" NOT FOUND
4260 MESSGE$(13)=" KEY CANNOT BE BLANK ": MESSGE$(14)=" NO MORE FOUND ":FILD$(1)="STATUS":FLDTYPE(1)=0:FLDLNGTH(1)=1:FLDDEC(1)=0:FLDLNNO(1)=6:FACCR(1)=56:FILD$(2)=" ROOM ":FLDTYPE(2)=0:FLDLNGTH(2)=8:FLDDEC(2)=0:FLDLNNO(2)=8:FACCR(2)=39
4390 CLS:LOCATE 1,1:PRINT LIN$(1):PRINT LIN$(2):PRINT LIN$(3):LOCATE 6,23:PRINT"(C)Copyright 1984, F1 Software.":LOCATE 10,29:PRINT"Name of input file ?":LOCATE 12,22:PRINT"[Hit enter to name file HOME.TXT]":RETURN
4450 LOCATE15,19:PRINT"VARPTRSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDSOUNDCOLOR":LOCATE16,19:PRINT"CALL CALL":LOCATE17,19:PRINT"CALL File not found - can create new file: CALL
5300 LSET WRK$=BLNK50$:IF CRNTFLD=1 THEN IF CHR$(SCREEN(6,56)) <> "A" THEN IF CHR$(SCREEN(6,56)) <> "B" THEN IF CHR$(SCREEN(6,56))<> "B" THEN IF CHR$(SCREEN(6,56)) <> "C" THEN IF CHR$(SCREEN(6,56)) <> "D" THEN BEEP : LOCATE 6,56:GOTO 190 : GOTO 5410