Brian Dunning's FileMaker Custom Functions

AddLeadingCharacters ( value ; character ; stringlength )

Add leading zeros or any other character to a string or value.

  Be the first to rate this function Log in to vote

 Neil Simpson   Neil Simpson - Show more from this author
Onroute.io
http://www.onroute.io

Share on Facebook Share on Twitter

  Sample input:
AddLeadingCharacters ( "abc" ; 0 ; 6 )
  Sample output:
000abc

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

Developed from Ignacio Yaselli's original function (https://www.briandunning.com/cf/1429) but modified to allow any leading character.

 

Comments

Philip Wang   Philip Wang, 106th Street Wheel and Tire
Aug 9, 2021
This is perfect! Thank you !
 

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: