Posted: Tue Apr 07, 2015 2:11 pm Post subject: [solved] What happened to endif?
Hi,
since I have updated to the latest version, "endif" cannot be used any longer. You have to use "end if"
Is this a bug or was that changed for any good reason?
(BASCOM-AVR version : 2.0.7.8 )
Last edited by Sebastian.Heyn on Tue Apr 14, 2015 7:27 am; edited 1 time in total
as you can see from the help, endif does not exist. only #endif
this because bascom was inspired by QB and VB which use end if and not endif.
so it is not a bug.
The line auto reformat function changes ? into Print and endif into end if, etc. and since this was called as part of the compilation, the compiler would not mind.
but since a part is rewritten, it is now flagged as an error. I did add it back to the next update so that users do not have to change old code. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum