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
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.

Under construction. Email me your wish list for improvements.