Filemaker Pro 8.5 Educational Maintenance T1 TJ086LL/A ユーザーズマニュアル
製品コード
TJ086LL/A
Chapter 13
|
Text formatting functions 199
•
Extend
•
Strikethrough
•
SmallCaps
•
Superscript
•
Subscript
•
Uppercase
•
Lowercase
•
Titlecase
•
WordUnderline
•
DoubleUnderline
•
AllStyles (all available styles)
Examples
TextStyleAdd(“Plaid”;Italic) returns the word
Plaid
in italics.
TextStyleAdd(FirstName;Bold+Underline) returns
Sophie
in bold, underlined
text when the FirstName field contains Sophie.
The following calculation removes all styles from the text, then italicizes the entire phrase.
The following calculation removes all styles from the text, then italicizes the entire phrase.
TextStyleAdd(TextStyleAdd(FirstName;Plain);Italic)
The following calculation creates two descriptions of styles, then concatenates two
phrases using these styles. Using the Let function is an effective way to avoid creating a
The following calculation creates two descriptions of styles, then concatenates two
phrases using these styles. Using the Let function is an effective way to avoid creating a
long and complex TextStyleAdd statement.
Let([TitleStyle=Smallcaps+Titlecase;BodyStyle=Plain];
TextStyleAdd(titleField;titleStyle)&"¶¶" &
TextStyleAdd(bodyField;BodyStyle))
In the following example, you might want to find every occurrence of several words and
change their style. Using the Substitute function combined with the TextStyleAdd
Let([TitleStyle=Smallcaps+Titlecase;BodyStyle=Plain];
TextStyleAdd(titleField;titleStyle)&"¶¶" &
TextStyleAdd(bodyField;BodyStyle))
In the following example, you might want to find every occurrence of several words and
change their style. Using the Substitute function combined with the TextStyleAdd
function is a good way to accomplish this goal.
Substitute(ArticleBody;[“Phrase1”;TextStyleAdd(“Phrase 1”;Italic)];[“Phrase
2”;TextStyleAdd(“Phrase 2”;Bold)];)
Substitute(ArticleBody;[“Phrase1”;TextStyleAdd(“Phrase 1”;Italic)];[“Phrase
2”;TextStyleAdd(“Phrase 2”;Bold)];)
TextStyleRemove
Format
TextStyleRemove(text;styles)
Parameters
text - any
styles - any named style from the list of available styles