Ronzues Posted November 26, 2005 Posted November 26, 2005 I am needing to set up a field based on this calculation. If "field 1" contains "insert" then "Ins" I know for the most part how to do the If(then) calcs but I am not sure how to make it look for a string of text in field 1. I can't use the "=" operator because field 1 can contain more data than just "Insert". It could say "Insert1", "cd Insert", "BRC Insert" etc. It could also contain data that doesn't have the word "insert" in it at all. Please help.
mav Posted November 26, 2005 Posted November 26, 2005 I might be leading you down the wrong path, as I'm only familiar with FileMaker 7 and up, but I would use If ( field 1 = "insert"; result )
LaRetta Posted November 26, 2005 Posted November 26, 2005 field 1 can contain more data than just "Insert". It could say "Insert1", "cd Insert", "BRC Insert" etc. You need Position() or PatternCount() text calculation here. Position is faster. If the word 'Insert' appears anywhere in field1, this calc will fire on it. Case ( Position( field1 , "Insert" , 1 , 1 ) , "Ins" ) LaRetta :wink2:
Recommended Posts
This topic is 7002 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