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

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

Recommended Posts

Posted

Any time the FM help references word functions there is this statement:

Note The ampersand (&) and hyphen (-) characters identify the beginning of a new word.

What does this mean? I am trying to breakdown a phone number where the elements of the number are separated by hyphens, but wordcount returns a value of 1. I find the help confusing especially since I would assume that spaces identify the beginning of a new word.

Posted

In version 7, the hyphen is NOT considered as a word delimiter IF it is between two numbers:

"m-n" is 2 words.

"m-2" is 2 words.

"1-n" is 2 words.

"1-2" is 1 word.

Try using Substitute() to work around that, e.g.B)

Let (

phone = Substitute ( PhoneField ; "-" ; " " ) ;

<< rest of your calc using "phone" instead of the field's name >>

Posted

It would be nice it that was documented in the Help

Yes it would. That's assuming they did this on purpose, or at least knew about this. I have a vague suspicion it's just an unintended by-product of providing the Evaluate() function.

This topic is 7037 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.