Thank you George for your response. I have now discovered the relevant
bit in the QPC/SMSQ manual and will try to decipher it. The Q40/SMSQ
manual doesn't appear to have this bit. From your message, I conclude
that it really isn't that easy but I'll persevere for a little while

Christopher Cave

-------- Original Message --------

*From:* gdgqler <>
*Date:* Fri, 27 Mar 2009 16:12:20 +0000

On 26 Mar 2009, at 08:59, Christopher Cave wrote:

> Does anyone know what the SBasic thing expects on the stack when it is
> used? Or can anyone please tell me where the appropriate documentation
> can be found (I have the SMSQ source but no idea where in it to look)?
> Looking at Jonathan Hudson's code, I can see that it can be passed a
> command string (cmd$) and up to 4 channel ids. Of the channels, one
> relates to a program to load (but is this necessary and how can the  
> thing
> tell when no program is meant to be passed?).

The manual says:

"On being invoked, SBASIC expects to find some channel IDs on the  
stack (standard QDOS conventions).

SBASIC will normally treat the first ID as the SBASIC program source  
file, the next ID as channel #0, the next ID as #1 and so on. The  
string defines the initial value of the CMD$ variable within the  
SBASIC program."

I have not been able to start a program in this way using EXEP. So I  
wrote the keyword EXEG which does work. This is available by using the  

and going via "downloads" to the sqlug site.

This contains an example.

QL-Users Mailing List
QL-Users Mailing List

Reply via email to