Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

[solved] What happened to endif?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Sebastian.Heyn

Bascom Member



Joined: 13 Apr 2005
Posts: 84

PostPosted: Tue Apr 07, 2015 2:11 pm    Post subject: [solved] What happened to endif? Reply with quote

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
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4966
Location: Holland

blank.gif
PostPosted: Tue Apr 07, 2015 8:45 pm    Post subject: Reply with quote

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
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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