Brian Dunning's FileMaker Custom Functions

Dec2HexNoLeading0s ( theNumber )

Convert Decimal # to Hex Text with no leading zeros

  Average rating: 3.9 (33 votes) Log in to vote

Samuel Herschbein   Samuel Herschbein
Consultant
http://www.oz.net/~samh

Share on Facebook Share on Twitter

  Sample input:
Dec2HexNoLeading0s ( 35243 )
  Sample output:
89AB

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

This function can stand alone, it returns as many digits as required to express the # in hex. My other function, Dec2Hex, specifies how many leading zeros (more useful to see RGB colors in web format.

 

Comments

John   John
Dec 4, 2009
What are the function parameters for this script? When I paste the script into the "Custom Function Window" it says to specify function paramenters.
 

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.

Under construction. Email me your wish list for improvements.