Brian Dunning's FileMaker Custom Functions

GetStyledWords ( text ; style )

Returns all the styled words ( in list view ) within the given text

  Average rating: 4.0 (38 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
GetStyledWords ( "I'm going ( bold ) to learn English ( bold )" ; "bold" )

GetStyledWords ( "I'm going ( bold ) to learn English ( bold )" ; "" )
  Sample output:
going
English

I'm
to
learn

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

GetStyledWords custom function

revision 1: now finds plain text, too.

Author: Daniele Raybaudi

Format: GetStyledWords ( text ; style )

Parameters:
text - the given text where there are some styled words
style - the style to search for ; if it is empty the function will search for "plain"

Returns all the styled words ( in list view ) within the given text

Example 1):
text = I'm going ( bold ) to learn English ( bold )
GetStyledWords ( text ; "bold" ) returns:
going
English

Example 2):
text = I'm going ( bold ) to learn English ( bold )
GetStyledWords ( text ; "" ) or GetStyledWords ( text ; "plain" ) returns:
I'm
to
learn

 

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: