Brian Dunning's FileMaker Custom Functions

TextEscape ( InText )

For finding text in a script when user enters the text, escapes certain characters that would cause the find to fail.

  Be the first to rate this function Log in to vote

Richard DeShong   Richard DeShong - Show more from this author
Logic Tools
http://logictools.com

Share on Facebook Share on Twitter

  Sample input:
TextEscape ( Table::TextField )
  Sample output:
The characters in the field that would cause the find to fail are escaped by inserting a backslash \ in front of them.

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

This is expected to be used in a scripted find.

In Find Mode, while the script is paused, the user enters some text into a field on the layout and continues the script.
The script then resets the field using this function:
Set Field [ Table::TextField ; TextEscape( Table::TextField ) ] ;
and then runs Perform Find.

 

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: