Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

Text.MergeFields

Merge field and variable names into text.

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

Parameters

Parameter Description Example value
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.
1+2+4+32

Result

Returns OK or error.

Description

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.
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!

Examples

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

Created 14th October 2018, last changed 15th October 2018


Text.LowerCase   -   Text.MimeTypeToFileExtension

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins