Brian Dunning's FileMaker Custom Functions

CorrespondingValue ( indexValues ; searchValue ; listOfValues )

Finds the first occurrence of searchValue in indexValues and returns the corresponding value in listOfValues.

  Average rating: 4.1 (53 votes) Log in to vote

Michael Horak   Michael Horak
*COMMENT Visual Realisation
http://comment.cjb.net/

Share on Facebook Share on Twitter

  Sample input:
CorrespondingValue (
"T¶N¶D" ;
"n" ;
"Text¶Number¶Date"
)


CorrespondingValue (
List ( Results::Score ) ;
Max ( Results::Score ) ;
List ( Results::Name )
)
  Sample output:
"Number"






returns the name of the (first) highest-scoring result

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

Finds the first occurrence of searchValue in indexValues and returns the corresponding value (i.e. the value with the same ordinal number) in listOfValues.

The search is not case-sensitive.

This function is NOT recursive.

 

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.

Under construction. Email me your wish list for improvements.