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.

Discovery: comments in calculation fields!

Featured Replies

I just discovered that comments can be inserted into calculation fields. The syntax appears to be

/*comment*/

Multi-line and nested C style comments also accepted (copied from FM7 help):

/* This is a calculation with C style nested and multi-line comments

/*----- It returns the title if it exists in a name -----*/

*/

C++ style comments are also accepted:

Greeting & "!!" // returns Hello!! if field Greeting contains the string "Hello"

But I want Pascal style comments wink.gif

(* this is a Pascal comment *)

There are other places where comments can be entered. See field definitions and scripts for example. Also you might take a llook at the DesignFunctions to see where you can extract comments.

Steven

Did you see the character qualifier for calculations? No more counting if you need quotations in a calc field. just put a backslash in front of it.

e.g. "She said, "" & textField & "", and left the room."

If you've ever generated html from field values, that's worth the price of admission.

Paul

The calculation engine now supports the constants:

true

false

Hi,

Do the comments come up in the Dbase or are they just for internal housekeeping?

  • Author

The comments in calculation fields just seem to be internal housekeeping, to use your term.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.