Goal amount for this month: 100 USD, Received: 20 USD (20%)
Donate to support this site and ThinBASIC project development
- Rep Power
Wrong error_line nuber
Please look at the attached jpg file.
The error line should be #6, but the report is #15.
This could be troublesome for a newbie, if the program is lengthy.
thinbasic suport the multilines strings such as
msgbox 0, "this is
will give you
in your code note that end sub are in light red color ie the same as what is inside quotes, the debugger think that all words after the first quote are a string until he reaches the second quote. but there is no second quote. so it gives the correct info. ie "missing quote _ Line number 14"
it is not an excellent debugger, but informative, and sometimes good and sometimes very good.
Last edited by zak; 07-03-2012 at 09:09.
zak is correct. thinBasic supports implicit line continuation and multi line strings.
In your code there is no double quote so thinBasic parser continues till it will find a double quote or the end of the script whichever comes first. In this case end of script comes first. At that time parser is able to produce a run time error.
Yes, maybe it should interpret the situation better but the advantages of having such a functionality (I mean: multi line strings) is great for many programmers.
I will see if I can improve error handling a bit is such circumstance
- Rep Power
Thank you for all your answers.
Anyway, thinBasic is so friendly, like old friends (qb45,vb6)
and it even does much more things then them!
A wonderful language, I love it!
By danbaron in forum O2 JIT Compiler / Assembler / Oxygen project
Last Post: 30-08-2011, 08:40
By Petr Schreiber in forum Fixed or cleared errors in help material
Last Post: 02-07-2009, 07:22
By Michael Hartlef in forum Fixed or cleared errors in help material
Last Post: 16-09-2008, 16:15
Tags for this Thread