Posted: Thu Oct 10, 2019 5:51 am Post subject: Odd compile (lack of) error
This typo, arrowed in the code below, compiled without an error, and the only thing that alerted me was that the vertical sub - end sub automatic indentation line, and the one between the If - endif did not get drawn
maybe you think the forum rules do not apply for you?
when posting code, it must be complete, not some fragment that needs work.
when posting, it should be clear what it is you want. is this a question? or you want to share your project? or you reply to someone with help?
And more important, consider who can answer. is it a forum cry for help or should you write to mcs support?
in your case it seems like a question to get an error?
well it is actually there when you check the Code Explorer
Why not at compile time? Well it was there some versions ago but lot of users like to use endif instead of end if. So the compiler accepts it. Like always, you can not make everybody happy.
The IDE can reformat your code when you type endif it will change into End If. _________________ 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