Brian Dunning's FileMaker Custom Functions

TrimLZ ( text )

Trims out all leading zeros from the supplied text; if the text includes only zeros then all are stripped out.

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

Bill Harman   Bill Harman - Show more from this author
eData Designs

Share on Facebook Share on Twitter

  Sample input:
  Sample output:

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

For users who work with a lot of legacy data where zeros rather than spaces are used to fill out a field, this function makes it easy to remove the leading zeros, making life easier for the end users who do not want to see all of those leading zeroes.



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: