RGB() function returns a number that represents the color. You can use this number directly w/o converting to RGB().
mygrid.DynamicBackColor = "IIF(something, " + ;
TRANSFORM(Thisform.text1.ForeColor) + ", " + ;
TRANSFORM(Thisform.text1.BackColor) + ")"
>Hello Everybody,
>
>I want to set the DynamicForeColor and DynamicBackColor Properties in a grid to the ForeColor and BackColor Properties of another object. This requires me to convert the ForeColor and BackColor Properties to text, e.g. RGB(0,0,128) to 'RGB(0,0,128)'.
>
>I would appreciate any help with how this can be done?
>
>Thanks,
>Herb
--sb--