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.

Remove Quotation marks from non alpha characters

Featured Replies

I'm struggling to remove quotation marks from a symbol/operator such as this:

"<"

I have tried Substitute (Text; "\""; ""), as well as Brian Dunning's custom function RemoveSmartQuotes (text). Both works in the field of question perfectly with normal text, such as {hello "world"} ends up being {hello world}, but ho matter what I run "<" through, the quotation marks remain untouched.

Any ideas?

Edited by artvault

the > is an operator and needs to be backslashed like the quotation marks

  • Author

Thank you Lee!

"\<" returns \<

Ok, then I just have to find a way to remove the backslash... LOL

Post a sample of your text

  • Author

Believe it or not, this is actually it:    "<"    From that I need to remove quotation marks, so that I simply wind up with   <   in the field. Seems simple...

Try

Substitute(YourField;"\""; "")

In your original post, you used a forward slash / instead of a backslash \

Edited by doughemi

  • Author
2 minutes ago, doughemi said:

Try


Substitute(YourField;"\""; "")

 

First thing I tried, not working, see original post.

In your original post, you used a forward slash / instead of a backslash \

 

  • Author
Just now, doughemi said:

In your original post, you used a forward slash / instead of a backslash \

 

Sorry, my bad, should be a backslash (FM automatically converts """" to "\""). I'll fix it.

I don't think I should be working that late... I created a new file, same technique (supposedly), and it works! 

Sorry for taking up your time.

I'm posting the sample file. Maybe this will be helpful to someone.

RemoveQuotations.fmp12.zip

Just FYI: I'm not going totally crazy. Luckily! 

Where it FAILS is in Find Mode. In Browse Mode it works like charm. So that might very well be impossible to solve. I'm am curious to why this is the case though...

The > is an operator and needs to be escaped using the backslashed.

This find work with your sample file 

Enter Find Mode

\>

perform find

BTW this was the replace calculation I used

Substitute (   YourField ;  "\">\""; ">")

  • Author

Thank you all for trying to help! I have taken the time today to separate all of the functionality that's related to this question and put it in a (new) sample file. I realize that the solution might consist of a work-around of sorts, so it's important to have the context.

In the file attached you can see an attempt to emulate FileMaker "native" find mode within a user's UI (does not require visibility of status bar). 

A crucial part of this workflow is the insertion of search operators. Most search operators are not problematic. You can insert them by means of script without any issues. The problem exists with > or < operators. Filemaker immediately complains about "invalid find criteria". When wrapped in quotation marks, these are inserted into the field without any error messages. The challenge then is (that's what this thread was originally about) to remove the quotes.

Unless there is a better way.... altogether?

SearchOperators.fmp12.zip

PS: use the "Enter Find Mode" button to get started - the rest should be obvious.

Edited by artvault

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.