RangePairsFilter ( ListOfPairs ; ValueToFilter )
To determine if a value (e.g. a date) falls into a list of intervals
Average rating: 4.3 (34 votes) Log in to vote
Maarten Witberg - Show more from this author
http://www.maatwerkdbs.nl |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
RangePairsFilter will recursively determine if ValueToFilter falls into a list of intervals; the result is boolean (1 for true null for false).
in its current incarnation it treats range pairs as pairs of dates.
The required format for ListOfPairs is
Pair1min¶
Pair1max¶
Pair2min¶
Pair2max¶
...
Painnmin¶
Pairnmax
This format can be obtained e.g. by using the List() function for both lineitems and the min and max pairs if they are individual fields:
ListOfPairs = List(LineItems::ListPair)
ListPair = List (MinField ; MaxField)
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.