Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

CleanText ( Text )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.1  (37 votes)
  Discuss this Custom Function

Tim Cimbura, Cimbura.com Technology
http://www.cimbura.com

Strips out illegal text characters and simplifies.

Sample Input:
This is a test of some weird text with strange characters like tilda ~ and back quote `
and some back slashes \\\ etc. Here’s a bulleted list:
• Test
• Test 2
It will change the bullets to asterisks
here is an inch mark ‘
and some normal quotes “
And some curly quotes “ ” ‘ ’
Sample Output:
This is a test of some weird text with strange characters like tilda and back quote '
and some back slashes etc. Here's a bulleted list
* Test
* Test 2
It will change the bullets to asterisks
here is an inch mark '
and some normal quotes '
And some curly quotes ' ' ' '


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

Gets rid of strange characters leaving only normal ones.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

Hey this is great! Just what I was looking for. I am a novice and need lots of assistance to get up to speed. We get data from various countries and sometimes they contain weird characters. I will need to add good replacements for weird characters like the umlaut O should just be replaced with an O. Do you have any suggestions? Thanks!!

Kim Khan, New York - Times Square
May 21, 2009 1:19pm

Unless there is a specific reason why not, you should also add the : character to this function. Makes a big difference if you're inserting timestamps/time into a text field.

Brent Hedden, San Diego, CA
May 01, 2012 12:29pm

Just a thought:

When pasting text from elsewhere another item for clean-up is the bullet-with-tab; unless you have FMP's text field field set up tabs and indents, extra tabs will make the text look goofy so you may want to add the following to the substitute command string:

[ Code(9) ; " "]

Great CF, Tim!

Richard Stuart, Ceti Alpha 5/Texas
September 05, 2012 11:52am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 2 + 8 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions