I don't think the version makes much difference here..
I need to cause the color property of a DBEdit box to change according to the contents entered as it posts to the datafield.
I know my code works at the DBEditBox and database level because because when I test the code by applying it to a PanelBox it changes the PanelBox color, but when I apply it to a DBEditBox it does not work.
{So far my code is as follows:}
If DBEditBoxYada.Text = 'G'
Then DBEditBoxYada.Color := clGreen
Else YadaYada;
{parent color is false}
{If you replace the 2nd DBEditBox with a panel box if works perfectly}
Any help
I need to cause the color property of a DBEdit box to change according to the contents entered as it posts to the datafield.
I know my code works at the DBEditBox and database level because because when I test the code by applying it to a PanelBox it changes the PanelBox color, but when I apply it to a DBEditBox it does not work.
{So far my code is as follows:}
If DBEditBoxYada.Text = 'G'
Then DBEditBoxYada.Color := clGreen
Else YadaYada;
{parent color is false}
{If you replace the 2nd DBEditBox with a panel box if works perfectly}
Any help