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
http://beezwax.net/

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:
5

  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.

 

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: