Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am interested in creating a custom function that would allow a user to apply a function to every value in a list.   It would look something like this:

 

applyFunction2List ( myList ; "function" )

... where 'myList' is a text field with return-delimited values, and "function" is a text expression of a user-specfied function. 

 

For example, applyFunction2List ("1¶2¶3" ; "[value] * 2" )

would return: "2¶4¶6"

 

I've tried working and modifying CustomFunction() and SubstituteManyWithCalclation(), without much success, but I admit I'm baffled by recursive functions. 

 

Any tips would be appreciated. 

Posted

I've written some functions that do this, ForEach and ForEach (non-recursive). You can reference these while writing your own, or just use mine. If you find anything I can improve, or want some clarification, please let me know.

  • Like 1
Posted

Amazing.  Exactly what I was looking for, and beautifully documented.  Thank you very much for sharing this.

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