I am trying to store the ComboColorBox.Color
property in a database field through LiveBindings in a Firemonkey Project. I want to store the hexadecimal AlphaColor
value, but the hex color value is automatically converted to a decimal value and not an AlphaColor
.
I've searching in the LiveBindings documentation and found that I can change the value of control property before is stored in database writing a binding expression in CustomParse
property of the Binding. The problem is that there is no built in function to convert an AlphaColor
to a String
in an expression.
Do I have to write a custom function to do that? How do I write that function and where? Or there is another solution?