Brian Dunning's FileMaker Custom Functions

DifferenceValues ( newList ; compareList )

Difference of values not found in the compare list.

  Be the first to rate this function Log in to vote

Rob Poelking   Rob Poelking - Show more from this author
Kiza Solutions
https://kizasolutions.com

Share on Facebook Share on Twitter

  Sample input:
DifferenceValues ( List ( "A" ; "G" ; "F" ) ; list ( "A" ; "B" ; "C" ) )
  Sample output:
G
F

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

This function will render a return separated list of values that are in the newList but not found in the comparisonList. This is helpful, for example, to take a list of already selected items and still present them in a new picker list, allowing the user to make new selections.

 

Comments

Andrew   Andrew
Oct 16, 2022
Null is generating an error - parameter not found. I'm no expert but I will try replacing Null with 0
 
Rob Poelking   Rob Poelking, Kiza Solutions
Oct 17, 2022
My bad. Null is another CF. Replace with with empty quotes (""). I will update the function now so there is no dependency.
 
Rob Poelking   Rob Poelking, Kiza Solutions
Oct 17, 2022
Actually, using 0 in this case is fine.
 

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: