Jump to content

text contains... ?


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

Recommended Posts

How do I write a function to test the first dozen letters of a string?

Eg.

string = "01-01-001 Cheese Grader" (field name is JOB)

What I need is a function that will test to see... If JOB contains the string "01-01-001".

Does this even make sense?

Link to comment
Share on other sites

Eg- use the pattern count function in a calculated field something like this:

FieldName; StringFoundflag: PatternCount(Job, "01-01-001")

Then do a search for field stringfoundflag greater than 0.

To make it easier to change the find string define a global text field to hold the text and put its name in the place of the "01-01-001", this way you can vary the find criteria easily.

Link to comment
Share on other sites

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