VistarTechnologies
asked on
Turn label of a field red when data has changed in another field
I am attempting to change the color of a font in a label to RED if the value of an adjacent field has changed. Doesn't matter what it changed to, I just need it to turn red if the item has changed at all. I am new to this so any help appreciated. Maximum points awarded. I need it urgently!
what language?
Also need to know - when the "adjacent field" changes - how does it change? Is the adjacent field a user input field or is it databound and read-only?
ASKER
Powerbuilder 9. It is a dropdown data window field. It is databound, yes. It pulls lookups from another table. It's not read only.
In the MS world, many objects have a ForeColor property that you can change dynamically.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try this: this is in c#.. i dont know if it helps
Label.ForeColor = System.Drawing.Color.Red;
Label.ForeColor = System.Drawing.Color.Red;