TextStyleAdd()

 <  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

Style Name

Numeric Equivalent

Plain

Strikethrough

1

Smallcaps

2

Superscript

4

Subscript

8

Uppercase

16

Lowercase

32

Titlecase

48

Wordunderline

64

Doubleunderline

128

Bold

256

Italic

512

Underline

1024

Condense

8192

Extend

16384

Allstyles

32767


 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net