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
eData Designs
http://www.fmptrainers.com/

Share on Facebook Share on Twitter

  Sample input:
TrimLZ(“0000010.50”)
  Sample output:
10.50

  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.

 

Comments

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.