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 - Show more from this author
Comsultant
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.

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: