Per usual - docs are WRONG

that USED to read

which IS correct
The data type is optional - not the value

In fact

   Const foo

will not compile

always nice to hear from Xojo…

sigh

:rofl:

and now Chat GPT has led that person astray with THE WRONG intent

AWESOME !

Cant even get on there to straighten him out

in CODE

   Const foo 

will not compile

A CONSTANT member added to an element like a clas, module, etc
CAN have a value assigned in different ways (that code cannot)
And you CAN use a platform specific value

But thats still NOT quite the same as one defined in code as he originally asked for

Oh well

Generation ChatGPT…

sigh, again…

regarding constants, I’ve just read this one :wink:

1 Like