Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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


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


Returns OK or error.


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.


Put some HTML on clipboard:

MBS( "Clipboard.SetHTMLText"; "<b>Hello</b>"; "UTF8")

See also

Example Databases

Blog Entries

This function checks for a license.

Created 7th January 2016, last changed 26th December 2019

Clipboard.SetFiles - Clipboard.SetPDF