Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
RichText.SetFormattedText
Sets new text for saving a document.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| RichText | 3.5 | Yes | No | No | Yes, macOS only | Yes |
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
Example Databases
Blog Entries
Created 18th August 2014, last changed 27th September 2016
RichText.SetAttribute - RichText.SetText
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins