Jump to content
Sign in to follow this  
igeek UK

Improving PatternCount searching

Recommended Posts

The technique described is OK, but we've had FilterValues since FileMaker 7.

 

Rather than:

PatternCount ( "¶" & List ( cListOfJobIDs ) & "¶" ; "¶JOB11333¶" )

You can do this:

FilterValues( List ( related::JobIDs ) ; "JOB11333" )

The result will be the text you searched for, rather than a boolean. You can then test for IsEmpty.

 

Another nice thing about FilterValues is that you can test for multiple values at once.

 

PS: your original formula was missing that second ampersand.

PPS: note that single pilcrows no longer need quotes since FileMaker 7.

PPPS: it seems likely that cListOfJobIDs is already a list, so you wouldn't wrap it in a List function.

  • Like 1

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

×

Important Information

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