Brian Dunning's FileMaker Custom Functions

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   Maarten Witberg - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
RangePairsFilter (3-5-2005¶4-5-2005¶6-5-2005¶8-5-2005¶27-6-2006¶28-6-2006 ; 7-5-2005 )
  Sample output:

  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

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)



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: