January 12, 200521 yr [color:"blue"] Hi! I want to be able to change the fill color of object by click a red button, or a blue button... I saw textcolor( text rgb ) but I dont know where to use it, I cant write in the action script, and I only see that function in the help. Thank you.
January 12, 200521 yr How about making the color red or blue depending on the value of the field? Here's an example from p. 913 of Using FileMaker 7: Let (Profit = GetAsText (Earnings - Expenditures); Case ( Profit > 0 ; TextColor ( Profit ; RGB (0 ; 0 ; 0 ) ; Profit < 0 ; TextColor ( Profit ; RGB (255 ; 0 ; 0 ) ; " " ) )
January 12, 200521 yr Author I'm sorry, but where do I paste that code? I can't paste it in a scriptmaker since I have to choose from a list... but thank you anyway
January 12, 200521 yr You would put the calculation into a calculation field or a text field with an auto-enter calculation. However, TextColor changes the text color, not the fill color. See here for a way to change that.
Create an account or sign in to comment