Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Merge field and variable names into text.

Component Version macOS Windows Linux Server iOS SDK
Text 8.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.MergeFields"; Text; Flags )   More


Parameter Description Example
Text The input text. "Hello <<$name>>"
Flags The various flags.
1 to allow field names.
2 to allow variables.
4 to allow expressions to evaluate.
16 to output XML
32 to output HTML.


Returns OK or error.


Merge field and variable names into text.
This functions look for items between << and >> to replace those with real values from fields, variables or expressions. This function does not preserve formatting.
For use in XML or HTML, we can encode all replacement values for you.

If you allow expressions, that may include plugins calls, so user could do anything via MBS calls!


Use function with Variable:

Set Variable [ $FirstName ; Value: "Christian" ]
Set Variable [ $text ; Value: "Hello <<$FirstName>>" ]
Set Variable [ $text ; Value: MBS( "Text.MergeFields"; $text; 1+2 ) ]
Show Custom Dialog [ $text ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 14th October 2018, last changed 6th December 2019

Text.LowerCase - Text.MimeTypeToFileExtension