Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the text on the clipboard.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Clipboard 2.6 Yes Yes No No Yes
MBS( "Clipboard.SetText"; text { ; type } )   More


Parameter Description Example value
text The new txt for the clipboard. "Hello World"
type Optional
The data type. By default NSStringPboardType, but can be other Mac types.


Returns "OK" or error message.


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.


Sets text:

MBS( "Clipboard.SetText"; "Hello World" )

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 25th August 2018

Clipboard.SetStyledText   -   ColorPanel.Choose

Feedback: Report problem or ask question.

MBS Xojo Plugins