Brian Dunning's FileMaker Custom Functions

HexC2DecC ( Hex )

Convert six character hexadecimal color into integer

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

Christopher Gauntt   Christopher Gauntt
Cordega Solutions
http://www.cordega.com

Share on Facebook Share on Twitter

  Sample input:
HexC2DecC (000000)
HexC2DecC (FFFFFF)
HexC2DecC (024EBA)
  Sample output:
0
16777215
151226

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

Returns an integer that represents a color obtained by converting standard 6 character hexadecimal input. Useful if you don't need to know the actual RGB values)
Hex = Hexadecimal input. Handles inputs containing leading/trailing spaces and/or # symbol. Self-contained. No external or self-calls.

 

Comments

Guy Wetzel   Guy Wetzel, St. George, UT
Jun 2, 2014
Awesome, worked perfectly first try.
 

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.