manatee Posted June 13, 2007 Posted June 13, 2007 Can anyone advise on the best method for changing colors of a field based on a calculation? Essentially we have amount1 divided by amount2 and if the amount is over 70% we want the field text to be red. If it is under then it stays black. Thank you a ton!
Ocean West Posted June 13, 2007 Posted June 13, 2007 Let ([ _value = Amount1 / Amount2 ] ; Case ( _value > .70 ; TextColor ( _value ; RGB ( 190 ; 0 ; 0 ) ) ; TextColor ( _value ; RGB ( 0 ; 0 ; 0 ) ) ) )
manatee Posted June 21, 2007 Author Posted June 21, 2007 Thank you very much. I need to look at this "let" function more closely. I do not recall this in FMP7.
Recommended Posts
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