Passing values to QBasic programs
Posted: Thu Oct 21, 2004 7:20 am
Is it possible to pass values accessable to QBasic programs at runtime?
For example, of program READ.BAS is used to read records from a data file specified by the user. It might begin like this:
1000 INPUT "Give File Name ", D$
1010 OPEN D$ FOR INPUT AS #1
1020 .......
When executed by
QBASIC /RUN READ
the user will be prompted to supply a file name.
My question is, can this file name be suppied at the QBASIC call, eg:
QBASIC /RUN READ(filename)
Thanks.
Bill
For example, of program READ.BAS is used to read records from a data file specified by the user. It might begin like this:
1000 INPUT "Give File Name ", D$
1010 OPEN D$ FOR INPUT AS #1
1020 .......
When executed by
QBASIC /RUN READ
the user will be prompted to supply a file name.
My question is, can this file name be suppied at the QBASIC call, eg:
QBASIC /RUN READ(filename)
Thanks.
Bill