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
Clipboard.SetHTMLText
Puts HTML data on the clipboard.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Clipboard | 6.0 | Yes | Yes | No | No | Yes |
MBS( "Clipboard.SetHTMLText"; HTMLText { ; Encoding } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| HTMLText | The html data to put in clipboard. | "<p>Hello</p>" \f0\b\fs28 \cf0 Hello World}" |
|
| Encoding | The text encoding for text parameter. Default is Windows ANSI. |
UTF8 | Optional |
Result
Returns OK or error.
Description
Puts HTML data on the clipboard.For server this will modify the clipboard of the user account running the server app on the server computer and not the clipboard of any client.
On Windows you may want to use Text.ReplaceNewline first to convert line endings. FileMaker on Windows uses Mac line endings internally.
Examples
Put some HTML on clipboard:
MBS( "Clipboard.SetHTMLText"; "<b>Hello</b>"; "UTF8")
See also
- Clipboard.GetHTMLText
- Clipboard.GetRTFText
- Clipboard.GetText
- Clipboard.SetRTFText
- Clipboard.SetStyledText
- Clipboard.SetText
- Text.ReplaceNewline
Example Databases
Blog Entries
Created 7th January 2016, last changed 26th December 2019
Clipboard.SetFiles - Clipboard.SetPicture
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos