The following program is for Archive and will set up a database. Enter it in Archive, save it as personal and to use it type RUN “PERSONAL”.
100 dev$1="mdv2_"
110 OPEN#3,con
120 PAPER#3,2: INK#3,7: BORDER#3,1,7:
CLS#3
130 REPeat readname: INPUT#3;"Filenam
e [_LIS] ";file$: IF file$>"": EXIT re
adname
150 OPEN_IN#4,file$&"_LIS"
160 OPEN_NEW#5,dev$&"doletter_PRG"
170 PRINT#5;"proc doletter"
180 REPeat process
190 IF EOF(#4): EXIT process
200 INPUT#4;txt$
210 txt$=txt$(1 to len (txt$)-1)
220 pos="@" INSTR txt$
230 IF pos THEN
240 PRINT#5;'if ';txt$(pos+1 TO pos+(
'$' INSTR txt$(pos+1 TO LEN(txt$))));'
>""'
250 PRINT#5;'doline;';'"';txt$(1 to p
os-1);'"+';
260 PRINT#5;txt$(pos+1 TO LEN(txt$))
270 PRINT#5;'endif'
280 ELSE
290 PRINT#5;'doline;"';txt$;'"'
300 ENDIF
310 END REPeat process
320 PRINT#5;'endproc'
330 CLOSE#3: CLOSE#4: CLOSE#5
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.