SBASIC command line passing (SMSQ)
Posted: Mon Oct 31, 2016 5:32 pm
Hi QLers,
when starting EXEs with EX we can pass a command line, e.g. EX TDEMOS;”\AUTO”. Key here is the ; sign. In case this is a TURBO compiled S*BASIC program, this command line can be read and used using the TTK MC FuNction OPTION_CMD$.
When starting a _BAS program using EX the SMSQ/E manual states how to pass a filename or two, e.g. EX uc_bas, any_file, par. Key here is the , sign. The manual states “Just as for "executable" programs, if file or device names (or channels) are given after the program name, the first file device or channel will be #0 within the program, the second will be #1 etc.”. But the manual keeps silent (or I did not spot it) regarding passing a command line to the started _BAS program, e.g. EX TDEMOS_BS;”\AUTO”.
Anyone? Thanks in advance.
Cheers,
Urs
P.S. QLers interested in what QL tinkering I was up this October may have a look at my Google+ page which is linked in the message footer.
when starting EXEs with EX we can pass a command line, e.g. EX TDEMOS;”\AUTO”. Key here is the ; sign. In case this is a TURBO compiled S*BASIC program, this command line can be read and used using the TTK MC FuNction OPTION_CMD$.
When starting a _BAS program using EX the SMSQ/E manual states how to pass a filename or two, e.g. EX uc_bas, any_file, par. Key here is the , sign. The manual states “Just as for "executable" programs, if file or device names (or channels) are given after the program name, the first file device or channel will be #0 within the program, the second will be #1 etc.”. But the manual keeps silent (or I did not spot it) regarding passing a command line to the started _BAS program, e.g. EX TDEMOS_BS;”\AUTO”.
Anyone? Thanks in advance.
Cheers,
Urs
P.S. QLers interested in what QL tinkering I was up this October may have a look at my Google+ page which is linked in the message footer.