Brian Dunning's FileMaker Custom Functions

MatchPrefixAll ( theList ; thePrefix )

Returns all values from a list that matches the supplied prefix.

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

Jeremiah Small   Jeremiah Small - Show more from this author
Soliant Consulting, Inc.

Share on Facebook Share on Twitter

  Sample input:
MatchPrefixAll ( "layout1¶
; "print" )
  Sample output:

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

Updated so List parameter doesn't conflict with native List function.

Returns all values from a list that matches the supplied prefix. This version strips the CR off the end of the result list. For reference, Mike's original revision is included as a comment in the body of the CF above. There is an interesting thread on called "Piggy backing on a CF input parameter" if you are learning about CFs and and care to read a technical discussion about CFs.



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

Under construction. Email me your wish list for improvements.