[Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread John Gilpin

Hi everyone,

this email was sent to the users list on 30/09/09 21:59 but doesn't seem 
to have arrived so here it is again.


Still hoping someone can help me with my BASIC problems.

Regards,

John Gilpin.



 Original Message 
Subject:Re: [Ql-Users] Help with BASIC/SBASIC WINDOWS
Date:   Wed, 30 Sep 2009 21:59:40 +0100
From:   John Gilpin johngilpin...@btinternet.com
To: ql-us...@q-v-d.com
References: 	4ac21f89.8050...@btinternet.com 
e494d004-604c-4ec1-a863-5b7f1ff50...@gmail.com




gdgqler wrote:
The advice for a cure might be to open a second window, which need not 
be used, over the whole screen.


George


I think that George ought to be awarded an A* for that suggestion!! :-) :-)

One solution I have tried is to add the following code to the end of the 
procedure:-


OPEN#chan,SCR
WINDOW#chan,512,256,0,0:BORDER#chan,2,7

and lo and behold all the borders are in place again.

Don't go away guys, this is just the beginning of my program review 
(taking my old BASIC code from my Aurora/SGC set-up and running it on 
QPC2), I am certain to need your help again later.


And just to prove this point, can anyone guide me on the following:

I understand that there is no need to compile BASIC programs when using 
QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or QLIBERATOR.


Do I take this to mean that I just   Ex win1_program_bas   ? And 
if it's as easy as that, what are the benefits and drawbacks of doing this?


In the meantime, thanks a million for your suggestions.

Regards to all,

John Gilpin.




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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread Rich Mellor



 Original Message 
Subject: Re: [Ql-Users] Help with BASIC/SBASIC WINDOWS
Date: Wed, 30 Sep 2009 21:59:40 +0100
From: John Gilpin johngilpin...@btinternet.com
To: ql-us...@q-v-d.com
References: 4ac21f89.8050...@btinternet.com 
e494d004-604c-4ec1-a863-5b7f1ff50...@gmail.com




gdgqler wrote:
The advice for a cure might be to open a second window, which need 
not be used, over the whole screen.


George

I think that George ought to be awarded an A* for that suggestion!! 
:-) :-)


One solution I have tried is to add the following code to the end of 
the procedure:-


OPEN#chan,SCR
WINDOW#chan,512,256,0,0:BORDER#chan,2,7

and lo and behold all the borders are in place again.

Don't go away guys, this is just the beginning of my program review 
(taking my old BASIC code from my Aurora/SGC set-up and running it on 
QPC2), I am certain to need your help again later.


And just to prove this point, can anyone guide me on the following:

I understand that there is no need to compile BASIC programs when 
using QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or 
QLIBERATOR.


Do I take this to mean that I just   Ex win1_program_bas   ? And 
if it's as easy as that, what are the benefits and drawbacks of doing 
this?


In the meantime, thanks a million for your suggestions.

Regards to all,

John Gilpin.




Yes under SMSQ/e you can simply EX win1_program_bas (or EW 
win1_program_bas).


The benefits? 
1) You can run multiple basic programs without compiling them.
2) You can test a program in the background, without overwriting the 
BASIC program currently in memory
3) If it is a number crunching program, you can leave it running in the 
background, whilst you work on something else
4) You can set up pipes to pass information, so use SuperBASIC programs 
as filters


It is all in the SBASIC/SuperBASIC Reference Manual  - there is a whole 
chapter devoted to running multiple basics.


--
Rich Mellor
RWAP Services
URL:http://www.rwapsoftware.co.uk
URL:http://www.rwapservices.co.uk


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


Re: [Ql-Users] Tony Tebby article

2009-10-03 Thread John Gilpin
It must be something to do with us editors being overworked, Dilwyn. I 
almost did the same thing or didn't you notice there were two address 
labels on your QUANTA Magazine this time (one on top of the other - 
piggybacked if they were rom chips?) - perhaps the extra weight caused 
the damage to the envelope that you reported!! :-)


Well, now we know we have you in the address database with your NEW 
Address, it will go OK next month.


Us editors must stick together Jochen!! :-)

Cheers,

John G.



Dilwyn Jones wrote:


Finally, a little mischievous dig:

JMS kindly published my new address on page 6, then sent the magazine 
to the old address! He he ;-))


Dilwyn Jones




___
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] Tony Tebby article

2009-10-03 Thread SMSQ - Jochen Merz

Thanks John :-)

Yes, you change addresses everywhat except for in your own database.

This is not the first time it has happened to me, sorry, Dilwyn.

Cheers   Jochen


John Gilpin wrote:
It must be something to do with us editors being overworked, Dilwyn. I 
almost did the same thing or didn't you notice there were two address 
labels on your QUANTA Magazine this time (one on top of the other - 
piggybacked if they were rom chips?) - perhaps the extra weight caused 
the damage to the envelope that you reported!! :-)


Well, now we know we have you in the address database with your NEW 
Address, it will go OK next month.


Us editors must stick together Jochen!! :-)

Cheers,

John G.



Dilwyn Jones wrote:


Finally, a little mischievous dig:

JMS kindly published my new address on page 6, then sent the magazine 
to the old address! He he ;-))


Dilwyn Jones




___
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



--
Jochen Merz Software - Kaiser-Wilhelm-Str. 302 - D-47169 Duisburg
   Tel. +49-(0)203-502011  Fax +49-(0)203-502012
   Email: s...@j-m-s.com   Homepage: http://SMSQ.J-M-S.COM

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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread Dilwyn Jones
I understand that there is no need to compile BASIC programs when 
using
QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or 
QLIBERATOR.


Do I take this to mean that I just   Ex win1_program_bas   ? 
And
if it's as easy as that, what are the benefits and drawbacks of 
doing this?


In the meantime, thanks a million for your suggestions.

Regards to all,

John Gilpin.
As a start point, make sure you are familiar with the Executing 
SBASIC Programs section of the SMSQ/E user guide (page 27 in the 
admittedly old version I have).


But in many cases it's as simple as executing the SBASIC program: EX 
win1_PROGRAM_bas and once that program finishes typing in a QUIT 
command to close the SBASIC job and return to the original SBASIC 
(unless your program closes channel #0 as its last act in which case 
the SBASIC might decide to die cleanly and that's that IIRC)


When you EX a basic program which goes into a new incarnation of 
SBASIC (i.e. a separate job to the original SBASIC) this is called a 
daughter job (understanding this helps you understand some of the 
explanations in the manual).


However...

Remember that the position of the windows will usually overlap the 
original windows unless your program changes it. There are various 
options to control size and position of the windows.


Make sure your program has a filename ending with _bas. SBASIC prefers 
this. Or _sav if you saved it with QSAVE.


Some programs use features or extensions which rely on the job details 
being 0,0 (the numbers listed by the JOBS command), i.e. will only 
work in the main SBASIC. The fix for some of these is trivial (don't 
use them), while others need some individual attention.


You may get problems with the windows as you have already discussed. 
Probably best to seek help on these as you find them.





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


Re: [Ql-Users] Tony Tebby article

2009-10-03 Thread Dilwyn Jones

John Gilpin wrote:
It must be something to do with us editors being overworked, 
Dilwyn. I
almost did the same thing or didn't you notice there were two 
address

labels on your QUANTA Magazine this time (one on top of the other -
piggybacked if they were rom chips?) - perhaps the extra weight 
caused

the damage to the envelope that you reported!! :-)

Well, now we know we have you in the address database with your NEW
Address, it will go OK next month.

Us editors must stick together Jochen!! :-)
Err, OK. I was only teasing Jochen, but since you mention it, no I 
didn't notice 2 labels. You got the address right John but not my 
name!


My full name is Dilwyn Lloyd Jones yet your label has Dilwyn L. L. 
Jones which is the only combination of L's that could be wrong. Dilwyn 
Ll. Jones could be right (use the Welsh LL letter) as could Dilwyn L. 
Jones or just Dilwyn Jones.


I'll beat you up tomorrow when I see you... :o)
--
Dilwyn Jones




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


Re: [Ql-Users] Tony Tebby article

2009-10-03 Thread Dilwyn Jones


- Original Message - 
From: SMSQ - Jochen Merz s...@j-m-s.com

To: ql-us...@q-v-d.com
Sent: Saturday, October 03, 2009 2:04 PM
Subject: Re: [Ql-Users] Tony Tebby article




Thanks John :-)

Yes, you change addresses everywhat except for in your own database.

This is not the first time it has happened to me, sorry, Dilwyn.

Cheers   Jochen



He he, see my response to John Gilpin ;-)

(Hope you understand I was only teasing you, not complaining)

Actually, 12 months' worth of mail redirection is in use anyway, so it 
turned up with an extra label superimposed by the post office.


Dilwyn Jones




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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread Bob Spelten
Op Sat, 03 Oct 2009 14:37:11 +0200 schreef John Gilpin  
thegilp...@btinternet.com:



I understand that there is no need to compile BASIC programs when using
QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or QLIBERATOR.

Do I take this to mean that I just Ex win1_program_bas?And if it's as  
easy as that, what are the benefits and drawbacks of doing this?



It's as easy as that.
One small drawback can be that when a Qliberated program crashes there  
usually is the infamous red screen with an error message.
This is not always the case with executed SBasic, it just disappears.  
That's why I always write and test my SBasics in QD and use the qd/sbas  
thing to execute from there. Then QD will report the error.


Bob

--
Gemaakt met Opera's revolutionaire e-mailprogramma:  
http://www.opera.com/mail/

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


Re: [Ql-Users] Tony Tebby article

2009-10-03 Thread gdgqler


On 3 Oct 2009, at 13:39, Dilwyn Jones wrote:

At last QL Today has arrived west of Chester and may I echo the  
comments already made about the wonderful article by Tony Tebby.  
Especially where he says he would never do it but apparently never  
is 25 years. The story is finally told from the inside.


QL Today has just arrived, today, in Edinburgh. In a week nor so  
copies will have reached Iceland I suppose.


I hope they find Tony Tebby's fantastic article as amusing as I did.  
And yet we are all still using QL's in one form or another.


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


Re: [Ql-Users] Tony Tebby article

2009-10-03 Thread Dilwyn Jones

QL Today has just arrived, today, in Edinburgh. In a week nor so
copies will have reached Iceland I suppose.

I hope they find Tony Tebby's fantastic article as amusing as I did.
And yet we are all still using QL's in one form or another.

George

Still using QLs is one thing.

The fact that a QL worked at all and even got launched is quite 
something, after reading Tony's article!


Actually, it's a lesson in how project management worked (or not) in 
those days.


I look forward to future installments of this series.
--
Dilwyn Jones



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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread François Van Emelen

John Gilpin schreef:
SNIP
Don't go away guys, this is just the beginning of my program review 
(taking my old BASIC code from my Aurora/SGC set-up and running it on 
QPC2), I am certain to need your help again later.


And just to prove this point, can anyone guide me on the following:

I understand that there is no need to compile BASIC programs when using 
QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or QLIBERATOR.


Do I take this to mean that I just   Ex win1_program_bas   ? And 
if it's as easy as that, what are the benefits and drawbacks of doing this?


Of course you can EW or EW a sbasic program instead of using LRUN but it 
is not always  adviseable as consequences are not the same.

Example:
ram1_trythis_bas contains the 2 following lines

10 a_variable=10
20 open#3,con_

After EX ram1_trythis_bas
if you type (command line)
print a_variable 0 will be returned
if you type (command line)
close#3 Invalid Channel ID will be returned

After LRUN ram1_trythis_bas
print a_variable will return 10
close#3 will close#3

So if you want to preserve the 'environment' LRUN should be used.
Hope this helps
Regards,
François Van Emelen
P.S. My English is not as good as it should be




In the meantime, thanks a million for your suggestions.

Regards to all,

John Gilpin.




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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread P Witte

Bob Spelten writes:


Op Sat, 03 Oct 2009 14:37:11 +0200 schreef John Gilpin 
thegilp...@btinternet.com:



I understand that there is no need to compile BASIC programs when using
QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or QLIBERATOR.

Do I take this to mean that I just Ex win1_program_bas?And if it's 
as easy as that, what are the benefits and drawbacks of doing this?



It's as easy as that.
One small drawback can be that when a Qliberated program crashes there 
usually is the infamous red screen with an error message.
This is not always the case with executed SBasic, it just disappears. 
That's why I always write and test my SBasics in QD and use the 
qd/sbas thing to execute from there. Then QD will report the error.


As it is not widely advertised and the documentation is hard to find,
I thought I should just mention that as of SMSQ/E 3.06 the QUIT
keyword takes an optional longword parameter. Earlier versions will
simply ignore this

QUIT error_code

where error_code are the usual suspects. If you EW program_bas, and
program_bas terminates with a QUIT error_code parameter, the calling
program will receive the error message.

Below follows an example using a home made error code. (The Home made
error codes principle has always been part of SMSQ/E (and if IRRC,
Qdos) but most people, I suspect, will have forgotten all about it ;o)

1 REMark Example of QUIT
2 REMark Using own error message
3 REMark by pjwitte 2009
4 :
100 addr = ALCHP(100)
110 erm$ = 'something got seriously buggered here..'  CHR$(10)
120 POKE_W addr, LEN(erm$), erm$
130 er = BIN('1'  BIN$(addr, 32)(2 TO))
140 REMark La di da
150 QUIT er
160 :

If the program snippet above is saved as ram1_Test_bas (for example)
then if

EW ram1_Test_bas

is executed from another basic console it should return the error
message something got seriously buggered here..! (pardon my Latin!)

Of course this isnt half as clever as it looks, as nowadays you arnt
guaranteed (AFAIK) that ALCHP wont return a negative address. Another
potential pitfall is if you use

er = FEW(ram1_Test_bas)

and try to work out the error message from there, as the location of
the error message is no longer defined since the job that owned the
space has disappeared!

However, the concept is valid. Youll just have to find a workaround
for those issues.

Per

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


[Ql-Users] Fw: Mel LaVerne (D. LaVerne) QL--our thanks

2009-10-03 Thread extdgl42
Dear QLers,
My or our thanks for your expressions of sympathy and empathy on the passing of 
long-time QLer Mel LaVerne, our father. That includes, but is not limited to:

Bill (Cable)
Francois (Van Emelen)
Herb  Ann (Schaaf)
Jochen (Merz)
John (Impellezeri)
Tony (Firshman)
Urs (Koenig)

Doug LaVerne 37830 USA

My apologies for using mere email for personal thanks, but anything could 
take forever to get to.

-Forwarded Message-
From: extdgl42 externa...@earthlink.net
Sent: Jun 29, 2009 5:58 PM
To: qlList_QL ql-us...@q-v-d.com
Subject: Mel LaVerne (D. LaVerne)  QL

The community could be interested to know that Mel LaVerne, QLer for decades, 
passed away early Wednesday morning, June 24th. He had suffered a stroke Jan. 
15th and declined slowly since. He retained his faculties but his body would 
not cooperate.

Mel acquired his first QL, the ubiquitous black box, in the 80s although I 
don't know the year. He moved up to floppies, HDDs and Aurora. He acquired his 
first desktop (admittedly, a non-QL machine) through QLers. He had extensive 
collections of QL magazines, manuals, and even 5 1/4 floppies.

He wrote articles for the defunct IQLR; I would have to do research to know 
whether he did or did not for QLT or even Quanta. He attended QL NAs including 
Rhode Island 1994 and one hosted by NESQLUG and hosted one in Oak Ridge, TN, 
USA (1995 I believe). The last few years, as his wife Eleanor's health 
declined, his participation in many things decreased. At the time of his death 
I, Doug, his son, was encouraging him to keep his mind stimulated in the 
skilled nursing facility by making certain enhancements to Mr. Kennedy's 
Tower of Hanoi game program from an old Quanta issue.

Doug LaVerne 37830 USA

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


Re: [Ql-Users] [Fwd: Re: Help with BASIC/SBASIC WINDOWS]

2009-10-03 Thread P Witte



I wrote:


1 REMark Example of QUIT
2 REMark Using own error message
3 REMark by pjwitte 2009
4 :
100 addr = ALCHP(100)
110 erm$ = 'something got seriously buggered here..'  CHR$(10)
120 POKE_W addr, LEN(erm$), erm$
130 er = BIN('1'  BIN$(addr, 32)(2 TO))
140 REMark La di da
150 QUIT er
160 :


Line 120 should actually read something like

120 POKE_W addr, LEN(erm$): POKE addr + 2, erm$

I was using one of my own keywords to test and then edited it out in 
the email before sending it off in a hurry without re-testing! Just as 
well I was bleating in the wilderness, otherwise Id have had a torrent 
of protests!


QUIT -10

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