ReadOnly/Final variables

How do you make a constant that you can set at compile to like in Java, you can use the final keyword.

Thanks in advance

I had to look this up here. Do you mean a variable whose value you do not know until runtime, then can only be set once? If so, there is nothing like that Xojo, but you can simulate that behavior using computed properties.

For Constants there is Const: