In message <1329506713.90809.yahoomail...@web171507.mail.ir2.yahoo.com>,
Michael Bulford writes
There is some code in my program that I do not want compiled: this is
only used when the SuperBASIC version is running. So, I use DEBUG 1
before the code and DEBUG 0 afterwards. When compiling the parser
stops with the report of
Task Turbo 5.06 halted, after line 0. Reason: out of range
The display panel reads: Pass: 1 Line 22300, which is a few lines
after the DEBUG 1 statement. Can anyone please tell me what I am doing
wrong? The program will compile successfully if the DEBUG command is
not used. I have tried using DEBUG_LEVEL but this makes no difference.
Michael Bulford
Hi Michael,
Check that the SuperBASIC code is returning a sensible value at Line
22300.
SuperBASIC, when it runs the code, tolerates values that the Turbo
Compiler will not, as it is much less tolerant.
Also useful to use and declare integer values, wherever you can, at the
start of the BASIC program - which is "value%" rather than "value".
Doing this should rid your program of these "out of range" type errors.
--
Malcolm Cadman
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm