recursively subsets a text string into [almost] all possible subsets, return delimited, debatably suitable for multi-line key foreign side of Portal search relationships
Sample Input:
AllTextCombinations( "abcd"; 0)
Sample Output:
abcd
abc
ab
a
b
bc
b
c
bcd
bc
b
c
cd
c
d
Description:
This is a revised version of Peter Gort's AllTextCombinations(theText) function designed to better handle FileMaker's limited function-call stack. It _will_not_ work perfectly for text of any length, but it should work pretty well for shorter strings. Unfortunately, it is very slow and inefficient at what it does in comparison to the oAzium Portal Filter plug-in: the size of the result roughly doubles for each of the first 15 characters! Furthermore, this function will only evaluate "properly" for the first 105 characters of theText.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
Charts and graphs in your FileMaker 5/6/7/8 solution without a plug-in. Click
here.
Custom Function Authors:
Link to all of your own custom functions on this site with the following URL:
http://www.briandunning.com/filemaker-custom-functions/results.php?author=Your
Name Here