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

  • Newbies

I am writing a database for a newspaper classified system which involves inputting text into a field. Does anyone know of a way of carrying out a word count in a field and then for the resulting calculation to be transferred to another field.

Define a calculated field:

WordCount (calculation, number, unstored) = WordCount(TextField)

-bd

  • Author
  • Newbies

hmmmmm bit confused can someone expand on this??

In Define Fields, create a new field. Call it WordNbr (to differentiate it from Live Oak's example--he gave the field the same name as the function). Make this a Calculation field by checking the field type radio button (text, number, global, etc.).

In your options, make the calculation result unstored, and the result a number, rather than text.

A window will open where you are to enter the actual calculation for the field. The top left will be a list of functions. Scroll down to the WordCount function and double click it. It will appear in the lower calculation window.

Where it says "text" in parentheses, replace this word with your original text field name, either by typing it or by selecting it in the field list in the upper left. Do not place the field name in quotes.

That's it. When you click Done, your database will grind away, calculating the word count in all records you already have, then the new WordNbr field will appear on your layout. You can then format it, move it around, etc., even use the result in other calculations.

By leaving it Unstored, this field will recalculate on the fly. Place the field next to your main text entry field, then delete a word in an entry. The WordNbr field count should drop by one, then go back up when you add the word back.

Steve Brown

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.