I found this last night. It was a pretty ugly glitch to track! one of my conditions got so big that i had to use line continuations.
Normally this is not an issue, but since the condition was so big, i put it in a MACRO to make the statement smaller and clearer.
I got distracted and went to do something else, when i came back the code was complaining about false errors. I had to look for it
since at fist it was an inocuous change in the code. But turned out to be very hard to track... Im sharing so others do not have to
deal with this...
Code:
#COMPILE EXE ' This macro is short and dumb for simplicity of this error demo code, ' In real world code, the condition makes sense and it is big enough to require ' line continuations. MACRO MACRO_TEST(i) = (1 = 1) OR _ (2 = 2) FUNCTION PBMAIN AS LONG ' NORMALLY, CONDITIONS WITH LINE CONTINUATION WORK AS EXPECTED. IF (1 = 1) OR _ (2 = 2) THEN MSGBOX "THE REQUIREMENTS ARE FILLED." END IF ' WHEN IN A MACRO, IT BREAKS IF/END IF CONTINUITY. IF MACRO_TEST(10) THEN MSGBOX "THE REQUIREMENTS ARE FILLED." END IF END FUNCTION
Comment