[comp.sys.apple2] VAL...

ST6934@SIUCVMB.BITNET (06/25/91)

On a somewhat similar line, when I first started programming in basic
using basic.system, I wrote (with the help of some books) a program
that accepted a group of numbers and performed various operations.
When I tried using basic.system's STORE and RESTORE, I was only able
to use a hard-coded name, rather than READ $F1, APPEND $F1, etc. after
defining $F1 or some variable.

Has anyone run into this before, or has STORE/RESTORE been given other
parameters?  DTS?

Andy.
st6934@siucvmb.bitnet

curtis@achilles.ctd.anl.gov (Jeffrey Curtis ) (06/25/91)

In article <9106250928.AA11823@apple.com> ST6934@SIUCVMB.BITNET writes:
>On a somewhat similar line, when I first started programming in basic
>using basic.system, I wrote (with the help of some books) a program
>that accepted a group of numbers and performed various operations.
>When I tried using basic.system's STORE and RESTORE, I was only able
>to use a hard-coded name, rather than READ $F1, APPEND $F1, etc. after
>defining $F1 or some variable.
>
>Has anyone run into this before, or has STORE/RESTORE been given other
>parameters?  DTS?

If you put it into BASIC properly, it should have worked - since BASIC is
interpretive, the command would be parsed and variables substituted before
ProDOS ever saw it.. so, hypothetically,

10 ?chr$(4);"store filename"

is equivalent to

5 fn$="filename"
10 ?chr$(4);"store ";fn$

Is that how you set it up?  If so, and it didn't work, then something's
messed up with the parameter passing between ProDOS's Basic.system and the
ProDOS BI..

*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
+ Jeffrey S. Curtis (708)972-8585 B41801 AT ANLVM curtis@achilles.ctd.anl.gov +
*        Computing and Telecommunications, Argonne National Laboratory 	      *
+ Want a free copy of Heatseeker, the Apple's fastest disk utility?  Mail me! +
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*