[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Applesoft Basic Question
Rich Hare writes ...
>
....
> I have a large number of files to process, and the disk swapping is
> slowing me down. I'd like to have the program read the file from S6,D1
> and write it to S6,D2; but darn it I can't seem to parse the statements
> to make it work. It seems that it should be something like:
>
> 100 D$=CHR$(4)
> 110 PRINT D$;"BLOAD"A$;S6,D1
....
As has been mentioned, the main thing is to enclose all
non-variable parts of a DOS command in quotes. You are constructing a
string; so, something like ...
110 PRINT D$"BLOAD"A$"S6,D1"
is fine.
You mention using ONERR. Something that would help with finding
errors is to disable ONERR during testing. You can do this by making the
ONERR statement into a REM.
Rubywand