GetTextStyle ( text )
Get text formatting assigned to a field or text
Average rating: 4.3 (28 votes) Log in to vote
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Sintax: GetTextStyle ( text )
Parameter: "text" = any text expression or text field formatted with colors and styles other than default formatting of the field.
Font, Size, Style and RGB Color (only first style encountered by funcrion GetAsCSS) as "¶" separated list. Style is returned as "bold+italic+underline"... ecc. Color is returned as RGB number. If no formatting is applied the corresponding value is empty.
Warning, are returned only formatting other than the default ones of the field.
Let's say you have a field formatted as Arial 12 plain, black. If IN BROWSE MODE you change text formatting in - Verdana 14 bold, italic, underline, red - the CF returns:
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.