Page 12 of 29

Re: QL Tinkering

Posted: Thu May 21, 2020 2:33 pm
by qbits
Hi Chris & Norman

Thanks for your time on this I've uploaded a further edited version.
and attached same here! Let's hope this does the trick!

QBITS

Re: QL Tinkering

Posted: Thu May 21, 2020 2:47 pm
by NormanDunbar
Chr$ wrote:It (qemulator) doesn't like the new version either. Nor does it seem to like Norman's suggestions, although I didn't try the last option yet because I'd have to renum and then also spotted MISTake lines for the same issue at lines 1127 and 1640 - 1643.
That's interesting. I tested my code before posting - I've been bitten too many times when I didn't test.

I have to admit, the consecutive line numbers can be interesting to work with! :D


Cheers,
Norm.

Re: QL Tinkering

Posted: Thu May 21, 2020 3:38 pm
by Chr$
qbits wrote:Hi Chris & Norman

Thanks for your time on this I've uploaded a further edited version.
and attached same here! Let's hope this does the trick!

QBITS
Seems fine on a slightly expanded BBQL but still shows prefix MISTake for 1150 (not the lines immediately below it), 1127 and 1640 - 1643 on qemulator (set to use JS ROM with TK2).

How do you get back to the main menu? Sorry if that info is somewhere here or in the pdf and I've missed it!

Re: QL Tinkering

Posted: Thu May 21, 2020 4:13 pm
by qbits
Hi chris,
Back to main menu from any of the Organiser pages is <spacebar> top of right hand page Contents solid bar (spacebar)
- see page 3 of pdf for control keys, (note not shown on calendar page)

Mistake line 1150, Select On yr% if your using the QPC2 version it might be due to a REMark staement on same line delete it and try again.
line 1127 ??? single line SELect ON statement
lines 1640 -1643 single line SELect On statements guess same problem as before?

Norman I wish I had more platforms for testing, but I only have QPC2 and QL2k emulators and on both my code works fine.
This variation in use of SELect ON and results is an interesting one.

QBITS

Re: QL Tinkering

Posted: Thu May 21, 2020 4:28 pm
by Chr$
Grab the free version of qemulator Mr Qbits, you won't need to upgrade it to attach a directory to drive 1 containing the BBQL file. Then just lrun it.

The REM statement seems fine, it appears to be the SELECT on statements that it throws a wobbly at.

Re: QL Tinkering

Posted: Thu May 21, 2020 4:36 pm
by Chr$
I think I've found what the problem is. Qemulator doesn't like the '%' symbol in connection with SELect on. Whatever syntax I tried it always failed to accept the line with 'bad line' until I removed the '%', then it became a good line!

1130 is SELect on k. When I try to change that to 'k%'.... bad line.

Re: QL Tinkering

Posted: Thu May 21, 2020 10:13 pm
by NormanDunbar
Bingo!

SELect requires a floating point variable. I'd completely forgotton about that. At keast, on a BBQL it does. Jan Jones said so!

Re: QL Tinkering

Posted: Thu May 21, 2020 10:14 pm
by NormanDunbar
Bingo!

SELect requires a floating point variable. I'd completely forgotton about that. At least, on a BBQL it does. Jan Jones said so!

Cheers,
Norm.

Re: QL Tinkering

Posted: Thu May 21, 2020 11:02 pm
by janbredenbeek
NormanDunbar wrote:Bingo!

SELect requires a floating point variable. I'd completely forgotton about that. At keast, on a BBQL it does. Jan Jones said so!
If you have a Minerva ROM or SMSQ/E, SELect can take integer variables.

Jan.

Re: QL Tinkering

Posted: Thu May 21, 2020 11:20 pm
by Chr$
janbredenbeek wrote:
NormanDunbar wrote:Bingo!

SELect requires a floating point variable. I'd completely forgotton about that. At keast, on a BBQL it does. Jan Jones said so!
If you have a Minerva ROM or SMSQ/E, SELect can take integer variables.

Jan.
My BBQL has Minerva, so that must have been why it wasn't an issue there. Qemulator is default JS. Do you know if German MGG ROM is ok with integer?