Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RichText.SetFormattedText
Sets new text for saving a document.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RichText | 3.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "RichText.SetFormattedText"; text ) More
Parameters
Parameter | Description | Example |
---|---|---|
text | The new text to use. Can have style information. | "Hello World" |
Result
Returns OK or error.
Description
Sets new text for saving a document.Examples
From Styled text to RTF:
// Custom function with pFormattedText as parameter
Let ( [
r = MBS( "RichText.Clear" );
vOK = MBS( "RichText.SetFormattedText"; pFormattedText ) ;
vResult = MBS("RichText.RTF") ;
vOK = MBS( "RichText.Release" )
];
vResult
)
See also
- RichText.AppendFormattedText
- RichText.Clear
- RichText.FormattedText
- RichText.ReadText
- RichText.Release
- RichText.RTF
- RichText.WriteDOC
- RichText.WriteRTF
Release notes
- Version 14.5
- Improved styled text conversion on macOS to include better support for highlight, underline and strikethrough, e.g. for RichText.SetFormattedText and Clipboard.SetStyledText functions.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 14.5pr4
- New in the MBS FileMaker Plugin 10.0
- MBS Filemaker Plugin, version 5.0pr5
This function is free to use.
Created 18th August 2014, last changed 27th September 2016
