Brian Dunning's FileMaker Custom Functions

FiveFieldsPermutations ( field1 ; field2 ; field3 ; field4 ; field5 ; number )

Returns all 120 simple permutations of the contents of five fields

  Average rating: 4.2 (31 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
field1="a "
field2="the "
field3="killer "
field4="man "
field5="killed "
  Sample output:
...among all the 120 permutations:
the killer killed a man
the man killed a killer
...

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

Returns all 120 permutations of the contents of five fields.
The "number" parameter must be set to 0

 

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: