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.SetText
Sets the text on the clipboard.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Clipboard | 2.6 | Yes | Yes | No | No | Yes |
MBS( "Clipboard.SetText"; text { ; type } ) More
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 WebDirect, 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
- Clipboard.GetData
- Clipboard.GetHTMLText
- Clipboard.GetRTFText
- Clipboard.GetText
- Clipboard.GetTypes
- Clipboard.SetFileMakerData
- Clipboard.SetFiles
- Clipboard.SetHTMLText
- Clipboard.SetRTFText
- Text.ReplaceNewline
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 8.2pr6
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- MBS Filemaker Plugin, version 4.2pr11
- MBS Filemaker Plugin, version 2.6pr7
FileMaker Magazin
Release notes
- Version 8.2
- Changed Clipboard.GetText and Clipboard.SetText to work better with UTF16 on MacOS.
Created 18th August 2014, last changed 25th August 2018
Clipboard.SetStyledText - ColorPanel.Choose
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins