Adding a constant causes an error

Hello Everyone,

On Windows 10 with Xojo 2016 R2, I can add one type of constant, but the second constant causes an error. Could I ask someone to confirm this error? Here are the steps:

  1. create a new Xojo project
  2. add the following constant:
    ETCF_ALWAYS_16_Bit as a Number = &B00000001
  3. Press run in the IDE and Xojo works
  4. Add another constant:
    ETCF_ALWAYS_32_Bit as a Number = &B00000002
  5. Press run and I get the following error in the IDE:

Location: WIndow1.ETCF_ALWAYS_32_BIT, Issue: Syntax error &B00000002

Does anyone have a solution to this issue, or should I create a feedback report?

Thanks!

Yes, use a valid binary number.

“2” is not valid in binary, just 0 and 1. But you knew that and now you’re kicking yourself. :slight_smile:

Here is the link to download the program:

Constant Error Xojo File

DOH!! Palm to face… thanks Kem :slight_smile: