Jump to content

contained within text


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

Recommended Posts

what function would i use to test if a given text string appears in a text field.

ie. say i have a field that holds the value "THIS STRING IS TO BE TESTED" and I have a function that calls... If FIELDNAME CONTAINTS "STRING" RETURN POSITIVE. any help would be appreciated.

cheers!

Link to comment
Share on other sites

If [PatternCount( " " & field " ", " stringtotest " )]

or

If [Position( " " & field & " ", " stringtotest ", 0, 1 )]

The extra spaces are to ensure that a partial match isn't found, such as looking for 'ask' in a field containing 'task'.

Link to comment
Share on other sites

This topic is 6524 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
 Share

×
×
  • Create New...

Important Information

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