Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Clipboard.SetHTMLText
Puts HTML data on the clipboard.
Component | Version | macOS | Windows | Linux | Server | 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. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
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
This function checks for a license.
Created 7th January 2016, last changed 26th December 2019