Today, 00:13
(Yesterday, 17:00)Borje Hagsten Wrote: You know the feeling - I had this large code in a function, lots of Select Case and IF/END IF's nexted in each other and I was 100% sure I had done everything according to the book, but it didn't compile. "Select expected", pointing at a final End Select at bottom of the function.
<snip>
Stupid error - changed IS to IF and al is well again. Beginning to wonder if it was a Freudian Slip from my fingers and the END really IS here for my brain..
For me, it's almost always something like this:
Code:
if x = 0 then
x += 1
end fiMy eyeballs run over it, see two "words" in the line starting with "END", and don't register the problem. If course, it's lever at the 1st or 2nd level of nesting.

