Brian Dunning's FileMaker Custom Functions

CaselessSubstitute ( text ; string ; function )

Substitute text without checking the characters on capitalization

  Be the first to rate this function Log in to vote

Menno van Beek   Menno van Beek - Show more from this author
Van Beek Zakelijke Software
https://www.vbzs.nl

Share on Facebook Share on Twitter

  Sample input:
CaselessSubstitute (
"What is Bob doing messing with the Bobcat in the middle of the dambobforest.His name is simply replaced with a litteral text. So Bob is now something else, like: bOb" ;
"bob" ;
"Peter" )
  Sample output:
What is peter doing messing with the petercat in the middle of the dampeterforest.His name is simply replaced with a litteral text. So peter is now something else, like: peter

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

This function substitutes text without checking the characters on capitalization. This function uses recursion, so it works in .fp7 files too.

 

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 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: