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.

[FP5] formatting text via script

Featured Replies

  • Newbies

Hello all,

I need to format a field so that it contains the first 2 letters of each word from another field. I have not needed to do this before and I can not figure it out other than it looks like I need to use a script to perform some sort of "strip text" to obtain the results.

Thanks in advance!

FileMaker Version: 5

Platform: Mac OS 9

Here are two ways to do this.

One: Create a calculation field of

Left( MiddleWords( text, 1, 1 ), 2 ) &

Left( MiddleWords( text, 2, 1 ), 2 ) &

Left( MiddleWords( text, 3, 1 ), 2 ) &

Left( MiddleWords( text, 4, 1 ), 2 ) &

Left( MiddleWords( text, 5, 1 ), 2 ) &

Left( MiddleWords( text, 6, 1 ), 2 ) &

Left( MiddleWords( text, 7, 1 ), 2 ) &

Left( MiddleWords( text, 8, 1 ), 2 ) &

Left( MiddleWords( text, 9, 1 ), 2 ) &

Left( MiddleWords( text, 10, 1 ), 2 )

You can vary the middle parameter of MiddleWords, depending on how many you need.

Two: check the attachment for a valuelist based on a repeating field calculation.

McFarlane_rep_word.zip

  • Author
  • Newbies

Thank you for the quick reply!

Am I correct in thinking that the numbers 1 - 10 are to calculate up to 10 words?

Thanks in advance!

FileMaker Version: 5

Platform: Mac OS 9

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.