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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Replaces text in current rich text document with new text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RichText | 6.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
SearchTextList | The list of texts to search. Search is case insensitive. | "$FirstName" | |
NewTextList | The list of new text to use as replacement. Can be empty. | "Christian" | |
Multiple | Optional, Pass 1 to replace all occurrences. Default is 0 to replace the first one found. | 0 | Optional |
Returns OK or error.
Replaces text to test function:
Let ( [
r1 = MBS( "RichText.ReadText"; "Hello World. Greetings from FileMaker."; "UTF-8" );
r2 = MBS( "RichText.ReplaceTexts"; "Hello¶World¶from¶FileMaker¶Greetings"; "Hallo¶Leute¶aus¶FileMaker!¶Grüße"; 0 );
r = MBS( "RichText.Text" );
r3 = MBS( "RichText.Clear" )
];r )
This function is free to use.
Created 25th September 2016, last changed 25th September 2016