SBASIC command line passing (SMSQ)

Anything QL Software or Programming Related.
Post Reply
User avatar
QLvsJAGUAR
Gold Card
Posts: 485
Joined: Tue Feb 15, 2011 8:42 am
Location: Lucerne, Switzerland
Contact:

SBASIC command line passing (SMSQ)

Post 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.


QL forever!
https://www.sinclairql.net/ - Go and get THE DISTRIBUTION & QL/E!
https://www.youtube.com/QLvsJAGUAR/community - Blog
https://www.youtube.com/QLvsJAGUAR - Dedicated QL videos
Sinclair, QL, ATARI, JAGUAR, NUON, APPLE, NeXT, MiST & much more...
Videos, pictures & information
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: SBASIC command line passing (SMSQ)

Post by mk79 »

http://superbasic-manual.readthedocs.io ... n.html#cmd

Btw, Deine eMail ist nicht vergessen...

Marcel


User avatar
QLvsJAGUAR
Gold Card
Posts: 485
Joined: Tue Feb 15, 2011 8:42 am
Location: Lucerne, Switzerland
Contact:

Re: SBASIC command line passing (SMSQ)

Post 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.


QL forever!
https://www.sinclairql.net/ - Go and get THE DISTRIBUTION & QL/E!
https://www.youtube.com/QLvsJAGUAR/community - Blog
https://www.youtube.com/QLvsJAGUAR - Dedicated QL videos
Sinclair, QL, ATARI, JAGUAR, NUON, APPLE, NeXT, MiST & much more...
Videos, pictures & information
Post Reply