Brian Dunning's FileMaker Custom Functions

MultiLineKey ( input ; size ; output )

Takes an 'input' string of text and converts it into multi-line key values

  Average rating: 4.6 (35 votes) Log in to vote

Peter Roots   Peter Roots
N/A
N/A

Share on Facebook Share on Twitter

  Sample input:
MultiLineKey ( "ABCDE" ; 3 ; "" )
  Sample output:
A
AB
ABC
ABCDE

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

Takes an 'input' string of text and converts it into multi-line key values, suitable for matching to in a relationship.
The function will derive component strings up to the length specified by the 'size' parameter. If 'size' is zero, the result is "". If the whole string hasn't been processed when the 'size' (length) has been reached, the result will include the derived strings up to that length plus the original string value.

Parameters:
input = remaining text to be processed; initially the full string value
size = maximum number of characters from the initial string to be processed
output = text that has been processed; initially blank

 

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.