Mike CPB Posted November 26, 2008 Share Posted November 26, 2008 Hi all. New to Filemaker, but getting somwhere day to day has been interesting. If ( Account = "New" ; "XXXXXXXXXXX" ; "") I have a field calculation that if the corresponding field contains certain text it will result in specific text in the calculated field. So far that works just fine, as long as the reference field contains that exact text ( at least at the beginning of the cell ) What are my options to search the within the cell for a match? I can't seem to use * as a variable in the calculation. Maybe this is a limitation, or better yet, I'm uneducated. Thanks in advanced. Regards, Mike C. Link to comment Share on other sites More sharing options...
Mike CPB Posted November 26, 2008 Author Share Posted November 26, 2008 Guess that didn't take long... GO GO Gadget patterncount... Thanks anyways, sure I'll have more questions. Regards, Mike C. Link to comment Share on other sites More sharing options...
Ocean West Posted November 26, 2008 Share Posted November 26, 2008 Welcome Mike, You can use the Exact function to be explicit where you wish to make sure the field is an exact match. http://fmforums.com/forum/showtopic.php?tid/194162/post/285587/hl/exact/fromsearch/1/ If ( Exact ( Account ; "New" ) ; "XXXXXXXXXXX" ; "") or you may try PatternCount() to determine if the Field matches some pattern string that you are expecting. hope that helps. Link to comment Share on other sites More sharing options...
Mike CPB Posted November 26, 2008 Author Share Posted November 26, 2008 That's a good idea... I'll try that too... I have another question. Is there a way to modify a script based on option/ctrl click? If I option/ctrl click a button the script will perform alternate? Regards, Mike C. Link to comment Share on other sites More sharing options...
comment Posted November 26, 2008 Share Posted November 26, 2008 See: http://fmforums.com/forum/showtopic.php?tid/177234/ Link to comment Share on other sites More sharing options...
Mike CPB Posted November 26, 2008 Author Share Posted November 26, 2008 If [ Get ( ActiveModifierKeys ) = 1] Delete Record Else Create New Record End If Complements Dwayne Wright & Google... Sorry for wasting time. Regards, Mike. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5768 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