jimlongo Posted November 26, 2010 Posted November 26, 2010 (edited) Hi, I may be looking at this wrong, or maybe there's an easy answer. I have a calculation that gives me a string Lastname, Firstname,phonenumber1,phonenumber2 I want to export that as a de-limited file that I can import into a spreadsheet. The problem is that I want the first field to be LastName, Firstname with the comma. So I thought that a comma separated file wouldn't work as this separates those two items. This lead me to want to export as tab de-limited. So my initial question is there a way to specify a "tab" as a text character in a calculation? So the string my calculation creates is Lastname, Firstname -> phonenumber1 -> phonenumber2 Or perhaps there's a way I'm not aware of to escape the first comma when importing a csv file into my spreadsheet application. Thank you, jim Edited November 26, 2010 by Guest
jimlongo Posted November 26, 2010 Author Posted November 26, 2010 I've decided to attack it differently. I've made a layout with 3 fields in a table format and Save as Excel. Thanks, but if there's an answer to my original question "Is it possible to have a character (tab) in a text string" Just like you can have a carriage return.
Raybaudi Posted November 26, 2010 Posted November 26, 2010 Hi I'm on Window and that char can be easily obtained with CTRL+TAB... there is sure some way to get the same char with a Mac.
Lee Smith Posted November 26, 2010 Posted November 26, 2010 You can export your fields in any order you want to as either a csv or tab separated file. See file formats and import export in the user guide and help. If you want to have it format it with commas, then it will take a calculation using a concatenation such as last name & ", " & first name HTH Lee
jimlongo Posted November 26, 2010 Author Posted November 26, 2010 (edited) Hi I'm on Window and that char can be easily obtained with CTRL+TAB... there is sure some way to get the same char with a Mac. Yes I would have thought that too, but I've tried every modifier+TAB and I haven't got it. We are talking about in the calculation dialog window? Thank you. Edited November 26, 2010 by Guest
Raybaudi Posted November 26, 2010 Posted November 26, 2010 I think that it is: Option+Tab in Mac Naturally that char must be between quotes and it seems a space in the calculation dialog window.
Lee Smith Posted November 26, 2010 Posted November 26, 2010 You can copy a tab from a text editor, or use the keyboard combination listed in the help for the Mac
jimlongo Posted November 26, 2010 Author Posted November 26, 2010 I think that it is: Option+Tab in Mac If only I could remember how to turn off the app switcher.
jimlongo Posted November 26, 2010 Author Posted November 26, 2010 You can copy a tab from a text editor, or use the keyboard combination listed in the help for the Mac Thanks Lee.
bruceR Posted November 26, 2010 Posted November 26, 2010 The char() function in FM10+ makes it easy to do this. Char(9) is the tab character.
comment Posted November 26, 2010 Posted November 26, 2010 You can have tab characters in field but when you export as tab-delimited, the tabs will be converted to spaces. OTOH, if you have a comma in a field, and you export as comma-separated, the comma will be preserved.
jimlongo Posted November 27, 2010 Author Posted November 27, 2010 You can have tab characters in field but when you export as tab-delimited, the tabs will be converted to spaces. OTOH, if you have a comma in a field, and you export as comma-separated, the comma will be preserved. Yeah, I ended up exporting as csv and changing the commas to tabs in a text editor.
comment Posted November 27, 2010 Posted November 27, 2010 Why don't you make a calculation field = Lastname & ", " & Firstname and export it as tab-delimited, along with phonenumber1 and phonenumber2?
Lee Smith Posted November 27, 2010 Posted November 27, 2010 That's what I suggested in my first post. :
Recommended Posts
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