In a message dated 24/04/2008 00:38:28 GMT Daylight Time,
[EMAIL PROTECTED] writes:
But if you try to compile (Turbo or Liberator) some parser error will
appear...
Hi Gerhard, its a codegen error : Duplicate Label Have you ever seen that
error?. Its not mentionned in the manual. The
Duncan,
Try putting NEXT i in line 9476
The compiler will be seeing two ends to the FOR loop/
Derek
[EMAIL PROTECTED] wrote:
In a message dated 24/04/2008 00:38:28 GMT Daylight Time,
[EMAIL PROTECTED] writes:
But if you try to compile (Turbo or Liberator) some parser error will
Morning Duncan,
Hopefully I'm remembering my FOR..NEXT..END FOR syntax correctly, but the
following looks remarkably suspicious :
9472 FOR i=1 TO scrolls
9474 Dev_Scroll_down
9476 IF dv_start=1 :END FOR i
9478 END FOR i
I think it should be :
9472 FOR i=1 TO scrolls
9474 Dev_Scroll_down
On 24 Apr 2008 at 2:57, [EMAIL PROTECTED] wrote:
(...)
9476IF dv_start=1 :END FOR i
This should probably be : EXIT i.
Wolfgang
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
Hi Derek,
Thanks that was the line.
I used EXIT i as Wolfgang suggested to stop the loop.
Program now compiles and now I have other bugs to fix
Duncan
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
Hi Norman,
Thanks that was the line.
I used EXIT i as Wolfgang suggested to stop the loop.
Program now compiles and now I have other bugs to fix
Duncan
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
Hi Wolfgang, Thanks that was the answer.
Program now compiles and now I have other bugs to fix
Duncan
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes
In a message dated 23/04/2008 19:59:57 GMT Daylight Time,
[EMAIL PROTECTED] writes:
Are you sure that every IF statement has an END IF ?
Particularly when nested loops and conditions are coded
Hi Malcolm,
I am fairly sure that they do
Hi Duncan :)
9472 FOR i=1 TO scrolls
=Beginning of the loop
9474Dev_Scroll_down
9476IF dv_start=1 :END FOR i
=End of the loop
9478 END FOR i
Here you have one more end of a loop (whitch never was beginning...)
so parser has a
In a message dated 24/04/2008 20:57:28 GMT Daylight Time,
[EMAIL PROTECTED] writes:
Wolfgang and some other guys are right, in line 9476 you have to use
NEXT i or EXIT i instead of END FOR i
Have much fun further debuging
Thanks, I will
Duncan
In a message dated 24/04/2008 20:33:21 GMT Daylight Time,
[EMAIL PROTECTED] writes:
I hope this helps.
It does many thanks as I am now past the it wont compile stage to I did not
think there were so many bugs to sort out stage.
Duncan
9472 FOR i=1 TO scrolls
9474 Dev_Scroll_down
9476 IF dv_start=1 TEHN NEXT i : END IF
9478 END FOR i
I can't remember off hand if Turbo is happy with no end ifs on a
single line IF, so I've always put them in myself, even in
SuperBaisc interpreted programs.
I also assume that if
Dilwyn Jones wrote:
9472 FOR i=1 TO scrolls
9474 Dev_Scroll_down
9476 IF dv_start=1 TEHN NEXT i : END IF
9478 END FOR i
I can't remember off hand if Turbo is happy with no end ifs on a
single line IF, so I've always put them in myself, even in
SuperBaisc interpreted programs.
I also
Am trying to compile a program with turbo 5.06. I am getting a codegen error
message Duplicate Label line 9480. Line 9480 contains only END IF of a
properly constructed IF END IF expression.
Duplicate Label is not mentioned in the manual as a codegen error report.
Can anyone clarify
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes
Hi,
Are you sure that every IF statement has an END IF ?
Particularly when nested loops and conditions are coded.
I know that Turbo does insist on correct syntax, without any shortcuts
that the BASIC parser may sometimes accept.
Which is
In a message dated 23/04/2008 19:59:57 GMT Daylight Time,
[EMAIL PROTECTED] writes:
Are you sure that every IF statement has an END IF ?
Particularly when nested loops and conditions are coded
Hi Malcolm,
I am fairly sure that they do it is one of the first things I looked for.
Duncan
In original SuperBASIC some (dubious) programm like
IF a=b then
FOR i=a TO b STEP 0.1
ELSE
FOR i=a TO b STEP -0.1
ENDIF
...
more commands
...
END FOR i
may run without any problem...
But if you try to compile (Turbo or Liberator) some parser error will
appear...
you have to write
17 matches
Mail list logo