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 7934 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

is it possible to nest the substitute function? i'd like to do something like this:

textinputfield: "Please substitute aaa for bbb."

textoutputcalc: "Please substitute apples for oranges."

i could do this with two calc fields like this:

textoutput1 = Substitute(textinput, "aaa", "apples")

textoutput2 = Substitute(textoutput1, "bbb", "oranges")

but that seems not particularly elegant, especially since each additional substitution would require an additional calc field.

Posted

There is a limit to the number of nested substitutions, the limit depends on the version you use. Either way, if you hit the limit you can split the calculation between two or more calculation fields exactly the way you proposed in your first post.

Posted

25 nested substitutes should be safe.

just make sure you dont substitute anythin twice, aka

substitute(fsubstitute(field,"xxx";"grappler");"apple";"trash")

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