"This is a constant; its value can't be changed" error

Const FrameID = ChrB(0)

What exactly about ChrB(0) does the compiler think is not constant??? :confounded:

I declare it once and never try to change its value. The error appears on the declaration line.

The value assigned to the constant can’t be the result of a function, and ChrB is a function. Try &u00 instead.

3 Likes

Ugh, I’ll use variables instead, but thanks for the explanation :slight_smile: