Clipboard.SetText
Sets the text on the clipboard.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Clipboard
|
2.6 |
✅ Yes |
✅ Yes |
❌ No |
❌ No |
✅ Yes |
MBS( "Clipboard.SetText"; text { ; type } )
More
MBS(
"Clipboard.SetText"; /* Sets the text on the clipboard. */
$text; /* The new txt for the clipboard.e.g. "Hello World" */
$type) /* Optional; The data type. By default NSStringPboardType, but can be other Mac types.e.g. "" */
Less
Parameters
Parameter |
Description |
Example |
Flags |
text |
The new txt for the clipboard. |
"Hello World" |
|
type |
The data type. By default NSStringPboardType, but can be other Mac types. |
"" |
Optional |
Result
Returns "OK" or error message.
Description
Sets the text 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.
If called on Web Direct, the plugin puts text on the clipboard for the server, not for the client! So the functions are of no use on server.
Examples
Sets text:
MBS( "Clipboard.SetText"; "Hello World" )
See also
Release notes
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 19th February 2021
Clipboard.SetStyledText
-
ColorPanel.Choose