Page 1 of 1

DONE: Until Not recognized

PostPosted: Sat Dec 04, 2010 11:52 pm
by tseyfarth
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

Re: Until Not recognized

PostPosted: Sun Dec 05, 2010 2:11 pm
by Henning
So change it to:

Loop While n < 1

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

/Henning

Re: Until Not recognized

PostPosted: Sun Dec 05, 2010 2:19 pm
by Slowdown
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.

Re: Until Not recognized

PostPosted: Sun Dec 05, 2010 5:42 pm
by tseyfarth
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

Re: Until Not recognized

PostPosted: Mon Dec 06, 2010 8:06 am
by berndnoetscher
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.