Kind of an oxymoron. A constant should be .. well .. constant.
However there are times you want that constant to be permanent, or constant, and unchangeable but it needs to be computed at compile time.
And it turns out that in Xojo you can do that IF you define a constant in code like :
Const foo = 123
Const bar = 345
Const foobar = foo + bar
If you assigned these constants to variables so you could inspect them like
Dim iFoo As Integer = foo
Dim iBar As Integer = bar
Dim iFooBar As Integer = foobar
break
you would see that iFoo, iBar and iFooBar have the values 123, 345, and 468 as expected.… Read the rest