Brian Dunning's FileMaker Custom Functions

NamedColor ( colorname )

Allows you to use CSS colornames instead of RGB() function

  Average rating: 4.4 (30 votes) Log in to vote

Theo Ros   Theo Ros
*
http://notapplicable.com

Share on Facebook Share on Twitter

  Sample input:
TextColor ( "Plaid" ; NamedColor ( "Red" ) )
  Sample output:
returns the word "Plaid" in red

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Use a color name to specify a color in FileMaker rather than RGB values.

Instead of specifying a color with separate Red, Green, and Blue values,
you can use some of the typical CSS web color specifications
(six-digit hex prefixed with "#" or named colors).

This function does the same as Geoff Coffey's Color(), but is faster
because it does not use a long series of Case tests.

Return type: Number

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.