Jump 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.

Remove quotation marks

Featured Replies

I'm importing data from another db which occasionally has quotation marks in some fields. These cause problems when I export out of FileMaker using AppleScript. I've tried Find & Replace, PatternCount and AppleScript to remove the quotation marks with very inconsistent results.

Is there a reliable way of removing quotation marks from fields?

Thanks, Peter.

Hi Peter

Try using Substitute ( text ; searchString ; replaceString )

Where 'text' is your field name, searchString is " and replace string is whatever you want to put in place of the "

So it might look something like this

Substitute ( MyField ; " ; # )

Let me know if this works out for you.

I don't think you can use a " as a value in a function; it will think you're trying to start a text string. But maybe put a " mark in a global field and substitute for that:

Substitute( MyField ; gQuote ; "")

Use this in a Replace to remove the quotes from a field or in a separate calc field that's specifically for your Applescript.

Hi PeterH,

Ender is correct, the easiest way to handle this is to create a global field and put a " in it and the use that in your search string. You can also use the four quotes like this:

Substitute( YourTextField , """" , "" )

If you are using v7, than it needs to be like this:

Substitute( YourTextField ; """" ; "")

HTH

Lee

Substitute( YourTextField; """; "" ) also works. is the escape character implemented in version 7.

This post is totally unnecessary except it will help to build my count. smile.gif

I forgot that v7 allows the use of some RegEx in it - finally.

Lee BirthdayPartyGuy.gifboing.gifChair-Fall.gifDancing-Chilli.gif

Hey, learn't something new.

Thanks guys!

  • 3 weeks later...
  • Newbies

I'm having the same problem.

I imported tab delineated text into Filemaker and all my fields

are in quotation marks.

But I'm such a newbie that I can't figure out the above posts.

Could somebody do me the favor of walking me through the process.

I basically have a database with quotation marks around all the values.

Is there a way to import the data without the quotation marks?

I don't really understand: Do I just create a global field with a " in it?

Seems like when I create a new fields called "quotation marks", it gets

inserted into the database.

Thanks for the help! I'm pretty new to this.

Nick Newlin

Hi, Nick, and welcome to FM Forums! For the easiest solution, refer to the 4th post here (the first one from Lee Smith) and follow his directions about the four quotes. The global is an alternative method, but not strictly necessary; i find the solution with the quotes easiest.

HTH.

Jerry

Hi Nick,

Jerry has pointed you to one way of dealing with this problem (i.e. after it is in FileMaker).

Ask.gif

From your post, I get the impression that you have some control over the file before it gets imported?

The quotations surrounding the data indicates a Comma Separated file. If you are able to change the file type prior to trying to import it, try using a Tab Separated file, and see if quotation mark problem doesn't go away.

If you receive this file from someone else, and you don't have a choice, then consider doing the change before you import it. On a Mac, I have found the best way to setup a file for import, is to manipulation in BBEdit or TextWrangler. Both are products of Bare Bones Software, and have multiple text handling capabilities such as Grep Pattern Find and Replace, using Regular Expressions, Perl, and POSIX.

Although, finding a " can be easily accomplished in Word, you can't beat these two programs for harder pattern things.

HTH

Lee

my2cents.gif

Create an account or sign in to comment

Important Information

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

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.