Quote:
Originally Posted by badkarma
...but should it grumble instead about the lack of a "Then" statement on the end of the first line instead?
|
In general for compilers the order in which errors are reported will depend upon how the code is parsed. Most compilers will not bomb out at the first error but will try to carry on compiling to show any further errors ignoring some code in the process. This means that some errors may be "hidden" until other errors are corrected. In this case it seems the lack of "End If" is stopping the compiler seeing the "If .. End If" structure so it doesn't look inside it to try to understand that.
Quote:
|
Also, take a look at the AND keyword ... B4P seems to uppercase this ... should it be 'And'?
|
It doesn't really matter as B4ppc is case-insensitive but a long standing convention in Basic has been to upper-case operators like AND, OR and XOR to distinguish them from variables which are usually written with at least some lower-case characters.