Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculated string that contains tab stops

Featured Replies

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

  • Author

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.

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.

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

  • Author

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

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.

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

  • Author

I think that it is: Option+Tab in Mac

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

  • Author

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

Thanks Lee.

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

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.

  • Author

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.

Why don't you make a calculation field =

Lastname & ", " & Firstname

and export it as tab-delimited, along with phonenumber1 and phonenumber2?

That's what I suggested in my first post.

:

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.