Jump to content

This topic is 5204 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted

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.

Posted

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.

Posted

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

Posted (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 by Guest
Posted

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.

Posted

You can copy a tab from a text editor, or use the keyboard combination listed in the help for the Mac

Posted

I think that it is: Option+Tab in Mac

If only I could remember how to turn off the app switcher.

Posted

You can copy a tab from a text editor, or use the keyboard combination listed in the help for the Mac

Thanks Lee.

Posted

The char() function in FM10+ makes it easy to do this. Char(9) is the tab character.

Posted

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.

Posted

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.

This topic is 5204 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.