Newbies weezy Posted September 26, 2007 Newbies Posted September 26, 2007 Every time I export text to a csv file some of the text fields appear in all CAPS - I need them in titlecase. In the database they are appear to be correct - I've gone to the trouble of fixing each field with the TextStyleAdd() function. When the records are imported into the database they are all in CAPS, then changed via the TextStyleAdd() of TextStyleRemove(). Why doesn't it preserve the formatting on the export? Any ideas?
Lee Smith Posted September 26, 2007 Posted September 26, 2007 (edited) Hi Weezy, I think the problem lies in how the data was entered into FileMaker. Click in the fields of offending records where you see this, and I believe you see that the data will was entered in CAPs. Even though you have the field displaying it differently (possibly), the data is in Caps. Let us know if this is correct, and we can offer some help in getting the data correct.. HTH Lee Edited September 26, 2007 by Guest
comment Posted September 26, 2007 Posted September 26, 2007 Try using Proper ( field ) instead of TextStyleAdd ( field ; Titlecase ). TextStyleAdd() merely styles the text - this is not preserved when you export plain text. Proper() modifies the actual characters.
Newbies weezy Posted September 27, 2007 Author Newbies Posted September 27, 2007 Thanks! That fixed it... the proper() function that is.
throwmethedisc Posted October 31, 2007 Posted October 31, 2007 Hello- I am having a similar issue with exporting data to excel. My data is Proper, and I would like it to show up as CAPS for this specific export. I didn't understand where you put the Proper ( field name ) function into service. I assume there is a similar function for Caps ( field name ), but I don't know how or where to plug it in. I'm grateful for any insight!
comment Posted October 31, 2007 Posted October 31, 2007 You need to define a calculation field and enter the formula in its formula box. The function to use in this case would be Upper(). Then you export the calculation field instead of the original. If there are many such fields, you should look into some alternatives, such as post-processing the exported file in a text editor, or formatting in Excel itself.
Recommended Posts
This topic is 6233 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