I have been testing some boxed QLs over the past couple of days, and
will be listing some for sale on www.sellmyretro.com
However, as part of one of the boxed QLs, I came across a sheet -
not
headed, but in the normal font used by Sinclair headed. Its
contents
are set out below.
/_*Important*_
To be inserted between pages 52 and 53
Note that in a procedure you should not use any of the parameters to
that procedure as your SELect variable.
Instead of :
DEFine PROCedure menu (a,b,c)
SELect ON a
..... ......
..... ......
..... ......
You should use :
DEFine PROCedure menu (a,b,c)
LET choice = a
SELect ON choice
..... ......
..... ......
..... ......
The SELect variable must not be a string variable or an integer/
Has anyone ever come across this - or indeed, has anyone ever come
across this as an issue?
Yes - it is documented in Simon Goodwin and Mark Knight's articles
about issues with the QL ROMs. I don't remember the full details, but
I always try to avoid this in my programs.
IIRC it is fixed by compiling the program, although copying the
parameter to a temporary variable allows the program to work
interpreted too.
Dilwyn Jones
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm