It seems impossible to use local variables in event scripts with the sc_field_style macro ?
Eg.
$foreground=’#FF0000’;
sc_field_style({My_Field}, “”, “”, $foreground, “”, “”);
It seems impossible to use local variables in event scripts with the sc_field_style macro ?
Eg.
$foreground=’#FF0000’;
sc_field_style({My_Field}, “”, “”, $foreground, “”, “”);
Did you try single ’ instead of double " ?
Like:
$foreground=’#FF0000’;
sc_field_style({My_Field}, ‘’, ‘’, $foreground, ‘’, ‘’);
or
$foreground=’#FF0000’;
sc_field_style({My_Field}, ‘’, ‘’, ‘$foreground’, ‘’, ‘’);
or
{foreground}=’#FF0000’; // you can use variables in brackets {var} instead of $var
sc_field_style({My_Field}, ‘’, ‘’, {foreground}, ‘’, ‘’);
Just few hints what I would tried.