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.

Quote marks in caluculations

Featured Replies

  • Newbies

I'm trying to specify a calculation for a field (ExampleField) that contains data from a text field (MyTextField) but I want to replace any quote marks in MyTextField with the word " inches"... I would write it like this:

ExampleField=

Case(PatternCount(MyTextField, """)=1, " inches")

But, of course, I get an error. Filemaker sees:

Case(PatternCount(MyTextField, ""

")=1, "

inches [a field]

") [expects a closing quote mark]

I tried creating a global text field called QuoteMark containing a " and wrote the calculation as follows:

ExampleField=

Case(PatternCount(MyTextField, QuoteMark)=1, " inches")

but that didn't work either. Anyone have any suggestions? Can I search by teh quote mark character's ASCII value?

zack

You may have smart quotes turned on in the document preferences. There are 3 different double quotes, the plain one, the opening curly quote, and the closing curly quote, You are probably looking for the wrong one. You could try:

Substitute(Substitute(Substitute(MyTextField,pQ,"inches"),ocQ,"inches"),ccQ,"inches")

where pQ, ocQ and ccQ are globals which contain a plain quote, an open curly quote and closing curly quote respectively.

Also, make sure that your globals are defined as text, not number.

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.