skynight Posted March 13, 2007 Posted March 13, 2007 I have a calculation field that returns a number. Can I make the display change the color of the number returned depending on the value? For example if the number is less than zero, the text (number)is red. If less than 30, it would be yellow and if more than 30 would be green. How do I set up the color command for that?
bcooney Posted March 14, 2007 Posted March 14, 2007 NumberDisplay= Case ( NumberField<0 ; TextColor ( NumberField; RGB ( 250; 0; 0)) ; NumberField<30 ; TextColor ( NumberField; RGB ( 0; 250; 250)) ; TextColor ( NumberField; RGB ( 0; 250; 0)) ) Result is Number or Text. Doesn't seem to matter. You might need to change the rgb values above, bcs I didn't have the time to figure out what is yellow and green.
Recommended Posts
This topic is 6526 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now