Have simple ReplaceAll and ReplaceFirst functions that dont use RegExp in addition to the ones currently available - Mendix Forum

Have simple ReplaceAll and ReplaceFirst functions that dont use RegExp in addition to the ones currently available

4

In quite a number of apps that I develop, I simply need to substitute parameters in a string with a value.

The parameters are put in the text as {text_to_replace}.

With the ReplaceAll function I get Mendix system errors if the variable in which the text needs to be replaced contains brackets or other special characters.

In a recent forum post this problem is also described.

https://community.mendix.com/link/space/studio-pro/questions/128184

 

Can we just get a function StringReplaceAll that simply accepts (Source, TextToReplace, ReplacementText) and doesn't use RegExp?

asked
1 answers

ok so this is why my MF is breaking ....

Created