Brian Dunning's FileMaker Custom Functions

CombineValues ( list1, list2, divider )

returns a grid of all values in two lists

  Average rating: 4.4 (28 votes) Log in to vote

Jeff Drake   Jeff Drake - Show more from this author
Drakeling Technologies

Share on Facebook Share on Twitter

  Sample input:
CombineValues( "1¶2¶3"; "4¶5¶6"; "|" )
  Sample output:
1|4
1|5
1|6
2|4
2|5
2|6
3|4
3|5
3|6

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

(This function is to be used with the CombineValuesExecute funcion.)

Given two return-separated value lists x and y, this function will return all combinations of values in the matrix [x|y].

[x1|y1], [x1|y2], … [x1|yn],
[x2|y1], [x2|y2], … [x2|yn],

[xm|y1], [xm|y2], … [xm|yn].


Edited to replace compound function with self-contained version.

 

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: