Brian Dunning's FileMaker Custom Functions

match_LayoutTableName_List ( _TableNames_List )

match a list of names to the current LayoutTableName

  Average rating: 4.8 (4 votes) Log in to vote

Thomas Siebert   Thomas Siebert
http://www.t-seabird.de

Share on Facebook Share on Twitter

  Sample input:
LayoutTableName_match ( "person¶invoice" )
  Sample output:
returns 1 if the current LayoutTableName is equal to one of the names in the List.

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

match a list of names to the current LayoutTableName of the current layout.
returns 1 if the current LayoutTableName is equal to one of the names in the List.

If the current LayoutTableName is "offer"
LayoutTableName_match ( "person¶invoice" ) returns 0

If the current LayoutTableName is "invoice"
LayoutTableName_match ( "person¶invoice" ) returns 1

 

Comments

Agnès   Agnès, France
Mar 17, 2017
Hi,

Why you don't use FilterValues ?

Not isEmpty ( FilterValues ( _TableNames_List ; Get ( LayoutTableName ) ) )
 
Thomas Siebert   Thomas Siebert
Mar 17, 2017
Hi Agnes,
thank you, good question,

maybe I had some kind of blackout that moment I made it.
FilterValues is much easyer.
but I used my function for a long time and it is working perfectly.

So who ever need that kind of function now has 2 versions of it.
The easy version and the experimental version.
:-)
 

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.