DONE: Until Not recognized

Please report bugs.

DONE: Until Not recognized

Postby tseyfarth » Sat Dec 04, 2010 11:52 pm

Hello Mr B.

Dim n as integer
Do
n = sp.BytesRead()
Loop Until n >0

The keyword "Until" is not recognized. Compiler error keeps asking for a While
tseyfarth
 
Posts: 67
Joined: Mon Oct 18, 2010 12:37 am

Re: Until Not recognized

Postby Henning » Sun Dec 05, 2010 2:11 pm

So change it to:

Loop While n < 1

I have earlier asked for:
Do While
...
Loop Until

/Henning
Henning
 
Posts: 523
Joined: Fri Aug 13, 2010 6:29 pm

Re: Until Not recognized

Postby Slowdown » Sun Dec 05, 2010 2:19 pm

with this the compiler has no problem,
Code: Select all
Public Dim StartSec As Integer

Signal on_ProjectOpen()   
 Do
   StartSec = StartSec + 1
   Loop Until StartSec > 20 
End Signal

Event Init()

End Event


With this the compiler has a problem,
Code: Select all
Public Dim StartSec As Integer

Signal on_ProjectOpen()     
 Do
   StartSec = StartSec + 1
   Loop Until StartSec > 20
 
End Signal

Event Init()

End Event

Now the compiler is complaining about the missing While.
Just removing the blank line after the do-loop makes the compiler accepting it.
Slowdown
 
Posts: 465
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: Until Not recognized

Postby tseyfarth » Sun Dec 05, 2010 5:42 pm

It is an Alpha... I was following the docs in KB, which is what Mr B said to use since it follow KB. Anyway thanks for the reply!
Tim
tseyfarth
 
Posts: 67
Joined: Mon Oct 18, 2010 12:37 am

Re: Until Not recognized

Postby berndnoetscher » Mon Dec 06, 2010 8:06 am

tseyfarth wrote:It is an Alpha... I was following the docs in KB, which is what Mr B said to use since it follow KB. Anyway thanks for the reply!
Tim


The syntax of q7basic is described in the documents. By now it does not have all constructs of KBAsic, but they could be done in all cases with the existing syntax of q7basic.
Missing parts of KBasic will follow as requested.
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest