I'm sure everyone on the planet (except me) already knows about this, but since I just blew a couple hours trying to figure this out I figured I'd post it here incase it trips up someone else...
I've been playing with Darrel's EE_Vars.pbp, trying to make it work. (I'm using PBP/MCS)
The sample file "EE_1_Example.bas" worked PERFECT, after I changed the LCD formatting for my hardware.
But then I tried it with one of my existing programs, and it wouldn't compile... MCS kept whining about "Symbol not previously defined (Byte)"
At one point I ended up with 2 apparently identical lines of code, and 1 worked and the other didn't.
???
As it turns out, it was because of incorrect case in my variable definition. But what threw me was that part of the declaration wants UPPER case and part wants LOWER case.
This works fine:
Code:
wastedtime var byte : @ EE_var _wastedtime, BYTE, 139
This does not work:
Code:
wastedtime var byte : @ EE_var _wastedtime, byte, 139
This does not work:
Code:
wastedtime var BYTE : @ EE_var _wastedtime, BYTE, 139
This does not work:
Code:
wastedtime var BYTE : @ EE_var _wastedtime, byte, 139
Of course it would have been much easier to figure out if the "Uppercase All" option for the reserved word formatting hadn't been on. But of course since it makes all the reserved words BOLD uppercase it all looked the same. I couldn't figure out why with 2 apparently identical lines, one would work and the other not. Once I turned off the Uppercase All option, then it became clear that BYTE was not in the same case...
So... why does it demand lowercase on one side of the definition and uppercase on the other?
Steve
Bookmarks