"RokuMarkn" wrote:
... There's also a bug in either your HextToInteger3 function or the call to it, since it doesn't account for the # at the start of the string (it ends up parsing the string "0#F6F6F6"). Unless you're not showing your actual code, there's no reason to say HexToInteger3("#F6F6F6") rather than the simpler and faster &hF6F6F6.
There is no bug in HexToInteger3 nor in the way he calls it:
BrightScript Debugger> ? HexToInteger3("#F6F6F6"), HexToInteger3("0#F6F6F6"), &hF6F6F6
16185078 16185078 16185078
The reason why/how this works can be seen here
viewtopic.php?f=34&t=66327&p=424467#p424655 - "turning lemons into lemonade" at the end.
That being said, of course hex literal (&hF6F6F6) is preferable when color is known in advance.