Page 1 of 1

SBASIC command line passing (SMSQ)

Posted: Mon Oct 31, 2016 5:32 pm
by QLvsJAGUAR
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.

Re: SBASIC command line passing (SMSQ)

Posted: Mon Oct 31, 2016 5:59 pm
by mk79
http://superbasic-manual.readthedocs.io ... n.html#cmd

Btw, Deine eMail ist nicht vergessen...

Marcel

Re: SBASIC command line passing (SMSQ)

Posted: Mon Oct 31, 2016 7:19 pm
by QLvsJAGUAR
Thanks for the fast reply, Marcel.
Damn. I forgot to look in the great SBASIC/SuperBASIC Reference Manual. Have both the paper original and the PDF Edition at Hand. And the new Online edition created by Norman is so handy.
mk79 wrote:Btw, Deine eMail ist nicht vergessen...Marcel
Supi, und ich hab da noch einen weiteren Punkt zu QPC2, maile ihn Dir.