gdgqler wrote, on 14/Aug/10 10:56 | Aug14:
On 14 Aug 2010, at 10:12, Rich Mellor wrote:
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. The variable for a SELect clause must be floating point. In SuperBASIC you
can, oddly, have parameters a, b and c any type- integer, floating point or
string. Hence the need to force the parameter to floating point by LET choice =
a.
I actually have several programs where I have had to make this adjustment.
Minerva did not have this "feature" and one could select with any
variable type.
Tony
--
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
[email protected] http://firshman.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman
TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm