What's wrong with this?!?
jjames
Posts: 2,908
Okay - I'm a bit sleep deprived and cannot for the life of me figure out why this won't compile.
This is within a CASE statement, and nothing is before it. If it comment out the assignment, it compiles fine. Clue?! I'm sure it's something obvious - I'm just having a REALLY blah day...
This is within a CASE statement, and nothing is before it. If it comment out the assignment, it compiles fine. Clue?! I'm sure it's something obvious - I'm just having a REALLY blah day...
STACK_VAR CHAR Temp[2][10]; STACK_VAR CHAR Status[4][10]; Status[1] = 'SECURE' Status[2] = 'NOT_READY' Status[3] = 'TROUBLE' Status[4] = 'BYPASS'
0
Comments
I added double quotes and the ending wink to it . . . still no help.
The error is the awesome, very descriptive syntax error . . .
I hate those kind of "bugs" / "errors" . . . can totally clean your clock.
Thanks for the help though!
Change this:
To this:
and then it will compile.
Or leave the declares as is and add another line of code before the assignment like this:
and then it will compile
I thought I had figured out before why the compiler chokes on the semi-colon in an example like yours but my mind is failing me at the moment. Maybe it was just reported as a bug, I don?t know?
--John
What Joe said.
--John