Brian Dunning's FileMaker Custom Functions

ForceZero ( NumExpression )

Forces a number calc field to display zero if is empty

  Average rating: 4.4 (32 votes) Log in to vote

Steve Gerow   Steve Gerow - Show more from this author
Abrazos Data Consulting
http://www.abrazosdata.com

Share on Facebook Share on Twitter

  Sample input:
ForceZero ( InvoiceTotal )
  Sample output:
0

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

Useful where Fixed Number of Decimals cannot be used but zero is still necessary to avoid user confusion. Not all functions will return a zero--"Count" will but "Sum" won't.

 

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.

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: