[Ql-Users] SBasic Thing documentation
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 longer! Christopher Cave Original Message *From:* gdgqler gdgq...@gmail.com *To:* ql-us...@q-v-d.com *Date:* Fri, 27 Mar 2009 16:12:20 + 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 address: http://web.ukonline.co.uk/george.gwilt/ and going via downloads to the sqlug site. This contains an example. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
Re: [Ql-Users] SBasic Thing documentation
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 address: http://web.ukonline.co.uk/george.gwilt/ and going via downloads to the sqlug site. This contains an example. George ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
[Ql-Users] SBasic Thing documentation
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?). Thank you Christopher Cave ___ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm