Brian Dunning's FileMaker Custom Functions

MaxLength ( field, foundCnt )

maximum trimmed character count for a field in current found set

  Average rating: 4.3 (33 votes) Log in to vote

Simon Brown   Simon Brown
Beezwax Datatools

Share on Facebook Share on Twitter

  Sample input:
MaxLength ( tableName::fieldName; Get (FoundCount) )

If the field for the records in found set contained {"Sam", "Larry", "Dave"}
  Sample output:

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

Simple example of a recursive function for determining the maximum trimmed character length of a field for all records in found set.

My main use for this was to determine how large a space I needed to allocate on a layout for various fields.



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: