Brian Dunning's FileMaker Custom Functions

RemoveValues_PreservingDuplicates ( MyList ; Out )

Speedily (and with no recursion) filter values out of a list (keeping any dups)

  Be the first to rate this function Log in to vote

Debi Fuchs   Debi Fuchs - Show more from this author
Aptworks Consulting
http://www.aptworks.com

  Sample input:
RemoveValues_PreservingDuplicates( List("a";"b";"c";"d"; "a")
  Sample output:
"a¶c¶a¶"

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

Speedily (and with no recursion) filter values out of a list
NOTE: includes original duplicates rather than returning unique values only (for an alternative see RemoveValues_ReturningUnique, which is faster)

 

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