sue, here:

If ( IsEmpty ( LD_ Binding Misc.3 ) ; "" ; ¶ & Substitute (TextStyleAdd ( "Misc. Bindery: " ; Bold ) & TextSize ( If ( PatternCount ( LD_ Binding Misc.3 ; "Numbers/Red" ) = 1 ; Substitute ( LD_ Binding Misc.3 ; "Numbers/Red" ; "Numbers/Red " & "(" & TextStyleAdd ( "Start #: " ; Italic ) & LD_Numberingstart3 & ", " & TextStyleAdd ( "End#: " ; Italic ) & LD_Numberingend3 & ")" ) ; If ( PatternCount ( LD_ Binding Misc.3 ; "Numbers/Black" ) = 1 ; Substitute ( LD_ Binding Misc.3 ; "Numbers/Black" ; "Numbers/Black " & "(" & TextStyleAdd ( "Start #: " ; Italic ) & LD_Numberingstart3 & ", " & TextStyleAdd ( "End#: " ; Italic ) & LD_Numberingend3 & ")" ) ; LD_ Binding Misc.3 ) ) ; 10 ); ¶ ; ", " ) )

puts style (bold) and size (10 font size) onto a variety of fields.

best,
bill

On Feb 22, 2007, at 1:39 PM, Sue wrote:

I have been interested in the posts here about standardizing formating in fields where folks are pasting in information in various fonts and styles. I decided what I wanted to do was set up a calculation field that takes the text they paste in a field and applies font size, style, color etc. But I have been unable to figure out how to apply size, style, color, and font all in one calculation equation. I can do it with multiple calculations each applying one of these, but this is unwieldy. Can anyone show me an example of a calculation string that applies font, size, color, and style to a field named TEXT.


Thanks!

Sue

Reply via email to