Brian Dunning's FileMaker Custom Functions

IsPlainText ( text )

Returns True (1) if text has no text formatting applied to it; otherwise returns False (0).

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

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

Share on Facebook Share on Twitter

  Sample input:
IsPlainText ( TextStyleAdd ( "abc" ; bold ) )


IsPlainText ( TextFormatRemove ( TextStyleAdd ( "abc" ; bold ) ) )
  Sample output:
0


1

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

Returns True (1) if text has no text formatting applied to it, in whole or in part; otherwise returns False (0).
Text formatting includes styles (Bold, Italic, Underline, etc.), fonts, font sizes, and font colors.

This function is NOT recursive.

 

Comments

Daniele Raybaudi   Daniele Raybaudi, ACI
Nov 23, 2013
Hi Michael

if we need to verify even the alignment, then I do not see other way than this:

TextToCSS ( StartDate ) = TextToCSS ( TextFormatRemove ( StartDate ) )

where TextToCSS is a custom function.
 
Daniele Raybaudi   Daniele Raybaudi, ACI
Nov 23, 2013
Edit:

TextToCSS ( text ) = TextToCSS ( TextFormatRemove ( text ) )
 
comment   comment, VR
Nov 23, 2013
I didn't want to go that far, because FMI didn't either - but if anyone needs it, Daniele's TextToCSS function is at:
http://www.briandunning.com/cf/1586
 

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.