Brian Dunning's FileMaker Custom Functions

GetMatchValueInList ( ValueList, Seperator, MatchText )

Search in a value list for MatchText, then return the rest seperated by Seperator

  Average rating: 3.6 (7 votes) Log in to vote

Philip Wang   Philip Wang - Show more from this author
106th Street Wheel and Tire
http://www.106sttire.com

Share on Facebook Share on Twitter

  Sample input:
MatchValueList( "apple - fruit ¶iron - metal" , " - " , "apple" )

MatchValueList( "apple - fruit - Company ¶iron - metal" , " - " , "apple" )

MatchValueList( "Rose is red ¶Sky is blue" , " is " , "sky" )
  Sample output:
fruit

fruit - Company


blue

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

It allows me to store value pairs in value list. Very useful to retrieve corresponding values I need.
Please be very careful with the separator: For example: For the pair "Apple - Fruit", the separator is " - ", not just simple "-" .

 

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: