Macro sc_field_style not working with color in a field from database

On record in a grid the macro sc_field_style is not working with a variable from database.
Code:
sc_field_style({id_field}, {rgb_color_field});

if I change {rgb_color_field} to “#00000” format, works fine.

Its an error? I don’t know clear, but previous version work correctly.
The macro sc_field_color continues working fine using a variable.

Use a global variable for you color value:
[my_color] = “#00000”;

Genius!!

I get the color of field from database, so using your tip, in my case was:
[my_color] = {field_with_rgb_code};
and finally: sc_field_style({id_state}, [my_color]);

Thanks a lot.

1 Like