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.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Creates RTF text for a given FileMaker formatted styled text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 2.4 Yes Yes Yes Yes Yes
MBS( "Text.TextToRTF"; Text )   More

(old name: TextToRTF)


Parameter Description Example value
Text Formatted text to convert. "Hello World"


some text you could put into rtf file.


Creates RTF text for a given FileMaker formatted styled text.
Currently only ANSI text encoding. Supports styles like bold, italic, underline, font size and text color. Other style features may be added in the future on demand.
Can be used with Clipboard.SetRTFText to bring styled text to the clipboard.


Convert some text to RTF

MBS( "Text.TextToRTF"; "Hello World" )

Example result:
Hello World

Convert some text to HTML

MBS( "Text.TextToHTML"; "Hello World" )

Example result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<html xmlns="" xml:lang="de">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<p>Hello World</p></body>

Write RTF file:

Set Variable [$rtf; Value:MBS( "Text.TextToRTF"; "Hello World äöü ß" )]
Set Variable [$r; Value:MBS( "Text.WriteTextFile"; $rtf; "/Users/cs/Desktop/test.rtf"; "Windows")]

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 11st December 2016

Text.TextToHTML   -   Text.Trim

Feedback: Report problem or ask question.

MBS Xojo tutorial videos