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

Featured Replies

Hello all,

can someone tell me how i can use quotes such as --> "" in a calculation field, so i can actually display them in the output of the calculation?

for example try to make a calulation which contains

"pic.gif" and it will not quite work. there must be a special way to quote the special characters, but i cant make it cooperate.

thanks,

overrider

  • Author

ok now of course after posting this i tried to enclose the " where filemaker complains with the character so " becomes " and now it works fine.

In addition to escaping the quote mark with a backslash, there are a couple of other options: one is to use the Quote() function, which returns what's inside the parentheses with quote marks around it. This would work well for example if, in the img tag above, the URL part of the tag was in a field.

Another good option for you, since you have FM8 Advanced, is to make a custom function called QUOTE that takes no parameters and simply contains a quote mark. This makes it easy to use in your text calculations, and many developers swear by it. One advantage is it makes your code very easy to read, in case another developer ever has to work on your projects.

  • 4 weeks later...

IMPORTANT: the Quote() function not only puts quotes around the expression, it also [color:red]escapes any special characters with a backslash ()! This may NOT return the results you're expecting, as I recently found out the hard way.

My file path Quote(diskfolderfile) turned into "diskfolderfile" -- thanks for the extra slashes, Quote function!

From the help file:

"This function protects text from being evaluated by the Evaluate function."

OK. So I'd now recommend only using Quote for that. Otherwise, the potential headache is not worth the small efficiency you gain.

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.