Brian Dunning's FileMaker Custom Functions

RepeatValueFinder ( ValueList )

Identify and return values that are repeated in a list

  Be the first to rate this function Log in to vote

Kent Silveira   Kent Silveira - Show more from this author
Kona Koncepts
http://www.konakoncepts.net

Share on Facebook Share on Twitter

  Sample input:
RepeatValueFinder ( "Apple¶Pear¶Orange¶Grape¶Apple¶Strawberry¶Apple¶Grape¶Apricot¶Strawberry¶Grape¶Pineapple¶Lemon")
  Sample output:
Strawberry
Grape
Apple

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

The FilterValue code in this custom function is from the DupesInList custom function from Daniele Raybaudi (http://www.aci.it) which itself was inspired by Jon Rosenʻs IdentifyDupes cf1334

RepeatValueFinder attempts to improve on this by leveraging the relative new "While" function. This allows the feature to work without needing to call the function recursively.

It also no longer needs the internal variables to be $ variables, so no possibility of accidentally crossing over with a variable in a running script.

 

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: