Dilwyn Jones writes
<>
> In my programs I tend to put a catch-all in for cases like this which
> allows this case to go around the loop again, but also to exit the
> loop if exhausted:
>
> 9476 IF dv_start <= 1 THEN NEXT i : EXIT i
>
> The exit gets ignored unless the loop is exhausted. Not su
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 progr
> 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
Hi, Norman.
> Take a look at what I've decoded so far (not much) here at
>
> http://www.qdosmsq.dunbar-it.co.uk/doku.php?id=qdosmsq:fs:qlwa
>
> and point out any errors in my assumptions etc.
Remember: programmers (usually) count from zero!
So in your example, the first map entry is actually po
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
__
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
___
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
Evening all,
I'm writing up more of the sqdosmsq.dunbar-it.co.uk website and I'm
looking into the format of the QXL.WIN format hard drive much beloved of
QXL and QPC users.
Now I've hex dumped a 30 MB 'win' drive and I'm going through it using
the brief details I had of the QLWA format also fo
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 sur
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
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 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
- Original Message -
From: "Malcolm Cadman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 23, 2008 7:25 PM
Subject: Re: [Ql-Users] qpc2 and asus eee
>
> May be those trying this out can write an article for QL Today or Quanta
> magazines ( or both ) ... ?
>
>
QL To
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
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
947
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
16 matches
Mail list logo