Brian Dunning's FileMaker Custom Functions

IsControlChar ( f_Char )

Tests if a character is an ASCII control character

  Average rating: 4.5 (26 votes) Log in to vote

Neal Elward   Neal Elward - Show more from this author
Extreme Reach

Share on Facebook Share on Twitter

  Sample input:
IsControlChar ( "a" )
  Sample output:
0

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

This function will check if the passed character appears to be an ASCII control character. Control characters typically end up in FileMaker fields mistakenly, and can cause problems with XML exports (particularly if there is an XSL transformation).

A good way to use this function is to call it from another function that recurses through a string.

 

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: