Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7533 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

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

  • Newbies
Posted

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

This topic is 7533 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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