Re: [Ql-Users] Daughter Job?

2008-01-21 Thread Malcolm Lear
Excellent! Thanks Wolfgang.

Malcolm


Wolfgang Lenerz wrote:
 On 21 Jan 2008 at 10:49, Malcolm Lear wrote:

   
 Hi

 A rather odd request, but does anyone know how an SBasic program could 
 determine if
 its running as job 0 or as an executed daughter job?

 Cheers
 Malcolm
 


 Print JOB$(-1) will give SBASIC in a daugther job and  in job 0.

 Hope this helps

 Wolfgang

 ___
 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] Daughter Job?

2008-01-21 Thread George Gwilt

On 21 Jan 2008, at 11:02, Wolfgang Lenerz wrote:


 Hi

 A rather odd request, but does anyone know how an SBasic program  
 could
 determine if
 its running as job 0 or as an executed daughter job?

 Cheers
 Malcolm


 Print JOB$(-1) will give SBASIC in a daugther job and  in job 0.

Unless you rename it  (blank).

The job ID of SBASIC will not be 0.

George
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm