I tried experimenting with XOJO color and specifically RGBA to get a property, computed property, or constant.
I get some interesting analyzer errors.
For the constant [quote]App.CRghtColr Declaration
Not enough arguments: got 0, expected 4.
Shared CRghtColr As Color = Color.RGBA(000, 061, 255, 208)[/quote]
For the computed property, the value for get that shows in the top is [quote]&c00000000[/quote].
That is promising but I can’t find a converter of RGBA to hex. I have tried several.
I have tried to find posts that explain, but I can’t find “RGBA property” mentions. It usually shows RGB.
And where did you find that syntax? (and the use of “#” for that matter)
Checking the LangRef might save you posting questions with improper use of syntax
[quote=372148:@JulianS]I don’t believe that you can declare a global like that.
The easiest way is to create a module then add a property to that module. That property will then be global across your project.[/quote]
Or a method if you want it to be Read Only.
I am not embarrassed, but thank you for pointing the error.
If you look up on the internet [quote]#ff0000[/quote] you will find infinite (almost) references to hex value and red.
If you then replace the # with an & the same sites will show up.
I copied the hex value above from w3schoolslink text.com where they represent and apparently most of the internet also represent hex colors with a #. XOJO uses an &
My problem of this bug is solved in that:
XOJO uses different symbols.
The analyzer didn’t point out the expected format for a color.