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

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

Recommended Posts

  • Newbies
Posted

We want to assign a script to a button that will change the color of text in a particular field. We would have a number of different scripts for assigning different colours. Can this be done using a script. thanks

Posted

Just use a Set Field command with TextColor and script parameters to pass the desired color.

Set Field [ yourfield; TextColor ( yourfield ; Get ( ScriptParameter ) ) ]

Sample script parameters:

For Red - RGB ( 255; 0; 0 )

For Green - RGB ( 0; 255; 0 )

For Blue - RGB ( 0; ; 255 )

Posted

Hi

Mr V has posted what I was going to, but you might want to also take a look at this post of mine, and the link to the file at databasepros Link

HTH

Lee

This topic is 6483 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.