Thomas Ledbetter Posted September 30, 2008 Posted September 30, 2008 (edited) I have a field option calculation on a F Name Field that strips out formating and adds title case. TextStyleAdd (TextStyleAdd ( F Name ;Plain) ; Titlecase ) (Do not replace - is not selected) Works great! Except when I do an email merge all the title case formating is lost. Many times the information in the field is placed there by a script parsing a web page. Would I be better off formating it within the set script on entry? Also assigning a field on a layout to be bold that contains the F Name field will not show in bold. Even if this is a field that joins the F Name and L Name fields. Edited September 30, 2008 by Guest
comment Posted September 30, 2008 Posted September 30, 2008 1. Styling done on the data level overrides layout formatting. If you want to remove styling from entered/pasted text, use the TextFormatRemove() function, instead of forcing the style to Plain. 2. E-mail is always plain text, and any styling you have applied to your data will not be preserved. You could use the Proper() function instead - note, however, that this will modify the actual data, unlike TextStyleAdd ( text ; Titlecase ) that merely styles it (export your data to a plain-text format to see the difference).
Thomas Ledbetter Posted October 1, 2008 Author Posted October 1, 2008 Thanks! That helped. I ended up with: F Name= Proper(TextSizeRemove (TextColorRemove ( TextStyleRemove ( F Name; AllStyles)))) And ran a looping script to correct the old ones. Thanks again.
Vaughan Posted October 1, 2008 Posted October 1, 2008 The TextFormatRemove( ) function removes everything - size, colour and style - in one go.
Recommended Posts
This topic is 5898 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now