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.

Featured Replies

Hi,

I need to add a slash to all double quotes in a text field so that when exported, it can be properly interpreted by the program we are sending the flat file to.

So, for example,

this: he said "hello, how are you?"

becomes this: he said "hello, how are you?"

It seems like a pretty simple fix by using the substitute function, but I'm having problems getting the syntax right, i.e. this doesn't seem to work:

Substitute(FieldName;""";"")

Any idea how to do this?

Thanks,

Andrew

Substitute(FieldName;""";"")


Substitute(FieldName; """; """)

I think that sright, the point here is, that filemaker needs the escape in front of quotes also.

  • Author

hmm, doesn't seem to work. In fact, it doesn't seem to effect the output at all.

Zero's calc works. Is your calc unstored?

  • Author

hmm... no, it isn't being stored... this is my calculation

Substitute(ItemName; """; """)

ItemName = "hello"

and the calculation is "hello" too, instead of "hello"

what else could i be missing?

You must specifically specify unstored in Storage Options. Copying your calc and pasting into my definition, it works and produces:

he said "hello, how are you?"

I tested it both in 7.0v3 and 8.0v2. :wink2:

What version of 7 are you running?

  • Author

8.0v2 advanced...

take a look at the file I've attached.

test.zip

Strange. Yep, it's breaking alright.

Well, it said I didn't have the right font so I changed it to Verdana. Then your calc field produced smart quotes. This may be why it's breaking.

Yep, you had smart quotes on - see File Options Text tab. It works now. }:(^)

I NEVER use smart quotes - it messes many things up.

L

  • Author

That did it -- Thanks!

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.