Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7258 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

[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.

Posted

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 ) ;

" " )

)

Posted

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

Posted

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.

This topic is 7258 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.