12.1S08
New function for placeholders in texts
The function "Text Replace Placeholders(<Text>;<Value>{;<...>})" replaces placeholders ({n}, {l:n},{u:n} with n as value index) in a text.
Parameters
<Text> (Text): Original text with placeholders
<Value> (Any): Values for the first placeholder
<...> (Any): Further values for additional placeholders
Return value
Text: Original text with replaced placeholders
Comment
The placeholders are inserted in the text with e.g. {2} (2. value), {l:2} (2. value with 1. letter lower case), {u:2} (2. value with 1. letter upper case).
This function is particularly useful in connection with translations and dictionary entries.
In the dictionary, the text can be translated with placeholders and then filled with values when used.
Example
Text Replace Placeholders("Please transfer the invoice amount to account {2} by {1}, quoting reference {3}."
Result:
"Please transfer the invoice amount by 24 December 2025 to account DE0123546979898, quoting reference RE20250002."