Brian Dunning's FileMaker Custom Functions

HexToRGBspecial ( Hex ; Output )

Converts Hex into RGB value showing, R, G, or B depending on

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

Doug Jacobs   Doug Jacobs - Show more from this author
Restylers Choice

Share on Facebook Share on Twitter

  Sample input:
HexToRGBspecial ( #08530E ; "red" )
HexToRGBspecial ( #08530E ; "green" )HexToRGBspecial ( #08530E ; "blue" )
  Sample output:
8
83
14

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

Converts a hexideciaml value to individual red, green and blue values based upon your selection for output. Ths allows you to separate each color into an individual field. Simply put "red", "Green", or "Blue" as the ouput and only that color's value will appear in the output of the function. This is great for sending values to FileMaker's text formatting functions for changing text color!

 

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.