Here’s a little quib for Disk Users: The senario is, several data files have been saved with a name followed by a number, as SAVE /”page 1″DATA h$() through “page 30”. Now Smart Text can print all 30 of these file in one continuous document without pausing for breath. BUT, the titles are not accepted. ST wants just numbers as titles for auto printing from disk. This little quib will fix things. << FOR n=1 TO 30: RESTORE /”page “+ STR$ nDATA $ TO STR$ n: NEXT n >>. CAT the directory and the 30 “page num” files have been changed to just numbers 1 – 30 for printing. Hope I didn’t lose you with that. All we did was to re-name 30 files in disk within about 30 seconds. A numeric variable, such as n, is added to a literal “string of characters” by using STR$ n.
Similiar concats of disk titles for SAVE LOAD RESTORE ERASE CAT MOVE are practical. Say a variable “n” needs to be appended to a title “page” to SAVE with LARKEN DOS. << LET a$=”page “+ STR$ n+”.a$”: PRINT #4: SAVE a$ >> ort to do it. Here’s an easier one for Aerco FD-68 to save PROGRAMS under a “program number” instead of a SAVE OVER. The title is “mscript” and the auto RUN line is 10. Your save line would be: << OUT 244,1: MOVE “mscript.bas”,10 >>. We start with a variable like <<LET ss=1>> then change the SAVE line to: << OUT 244,1: LET a$=”””mscript “+ STR$ ss+”.bas”””: MOVE “a$”,10: LET ss=ss+1 >>. The first save is “mscript 1.bas”. The next save will be “mscript 2.bas”. To get to be friends with STR$, do this: <LET a=1> <PRINT STR$ a>. <LET b$=”test”> <LET c$=b$+” “+ STR$ a> <PRINT c$>. See? STR$ is pretty friendly after all!