Brian Dunning's FileMaker Custom Functions

cf_convertHexRGB ( HexNumber ; Separator )

Convert hexadecimal RGB values

  Average rating: 3.8 (38 votes) Log in to vote

Klemens Müller   Klemens Müller - Show more from this author
Klemens Müller
http://www.klemenso.de

Share on Facebook Share on Twitter

  Sample input:
cf_convertHexRGB ( "00AACF" ; " " )
  Sample output:
0 170 207

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

cf_convertHexRGB( HexNumber; Separator )
by Klemens Müller, www.klemenso.de, 05.07.2006
This is a simple example to convert hexadecimal RGB values. The function returns the decimal value for each byte of a three bytes long hexadecimal value. Please, let all of us know, if you discover an error or you create a shorter version of this function.

1. Remove unnecessary characters in the input.
2. Range of possible characters in the hexadecimal number system. The decimal value of each character will be represented by the term "position - 1".
3. Each returned value will be separated with in this parameter submitted string.

 

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 20 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: