< Day Day Up > |
TextStyleAdd()Category: Text Formatting Syntax: TextStyleAdd ( text; style(s) ) Parameters: text ”any text string or expression that returns a text string; style ”any named style or list of styles separated by a plus (+) sign, or an integer that represents a combination of styles. Named styles should not be placed in quotation marks and cannot be passed as field contents. Description: Returns a text string that has the specified style(s) applied to it. Examples: TextStyleAdd ("word underline."; WordUnderline) Results in word underline . TextStyleAdd ("bold italic!"; bold+italic) Results in bold italic! TextStyleAdd ("Plain text"; Plain) Removes all styles from the text. If the "Plain" style is combined with any other styles, it is ignored. Comments: The style names are reserved keywords in FileMaker Pro and should not be placed within quotes. You cannot, however, place a keyword in a field and use the field as the style parameter within TextStyleAdd() . Styles can be specified as local variables within Let functions. All the style names have numeric equivalents that you can use instead of the names. To combine multiple styles, simply add the numeric equivalents together. The numeric equivalent can be specified by a field, so use this method if you need to dynamically specify a text style. The list of styles and their numeric equivalents is shown in Table B.2: Table B.2. Style Names And Numeric Equivalent
|
< Day Day Up > |