Topic: Combo bgColor...
Hi All,
I wanted to change combobox bgColor and font color with following script but it didn't work.
Any correction please?
if (Form1.cbItemRating.Text = '09') and (Form1.cbItemRating.Text = '10') then Form1.cbItemRating.Color := clRed else Form1.cbItemRating.Color := $00604046;
if (Form1.cbItemRating.Text = '09') and (Form1.cbItemRating.Text = '10') then Form1.cbItemRating.Font.Color := clWhite else Form1.cbItemRating.Font.Color := clYellow;
I put the script under form1 onShow, tablegrid cell click and combobox onChange.
Combobox contains 1 to 10 as text db field.
God... please help me become the person my dog thinks I am.