Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

If [ Get ( ActiveModifierKeys ) = 1]

Delete Record

Else

Create New Record

End If

Complements Dwayne Wright & Google... Sorry for wasting time.

Regards, Mike.

This topic is 5894 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
×
×
  • Create New...

Important Information

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