ron G Posted July 1, 2011 Posted July 1, 2011 I have FM 11 Adv. Is there a function that will filter a text field for a specified word? For example, I have a text field and want to filter it for the word "Jones". I want to do this: IF [FilterInclude(FieldName; "Jones")] ... do some stuff END IF It seems that the FM Filter function does filtering to exclude all but the specified values. I want to 'detect' if the user typed "Jones" into FieldName in any word order. That is, it will detect the first, second third or nth word occurrence of "Jones".
comment Posted July 1, 2011 Posted July 1, 2011 If you mean "Jones" as a word (i.e. not "jonesing" or "cojones"), you will have to check word by word - using either a custom function or a looping script.
ron G Posted July 1, 2011 Author Posted July 1, 2011 PatternCount( ) ? That did it: If [patterncount(FieldName; "Jones")>0 worked great... Thank you!
Recommended Posts
This topic is 4892 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 accountSign in
Already have an account? Sign in here.
Sign In Now