This is more of a FYI and probably by design. I knew that you could not directly have these two constructs nested, as coding something like this:
Code:
do
while zzz
wend
while yyy
Could be confusing/ambiguous to the compiler. But today I ran into it when the loops were contained within a If...endif which should have removed all ambiguity... Something like:
Code:
i var byte
j var byte
i = 0
j = 0
do
if j < 50 then
while j < i
j = j + 1
wend
endif
i = i + 1
while i < 100
But if you compile this you end up with an error
Code:
Error: FILE C:\USERS\KURT\DESKTOP\LYNXMOTION\XXX.BAS(LINE 8) : [TOKEN WHILE] : IF without ENDIF
On the whle j < i line.
Yes the code above is meaningess. I worked around in the real code...
Kurt