Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

Clipboard.SetText

Sets the text on the clipboard.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Clipboard 2.6 Yes Yes Yes No No

MBS( "Clipboard.SetText"; text { ; type } )

Parameters

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.
""

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.

Examples

Sets text:

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

See also

Example Databases


Clipboard.SetStyledText   -   CompileDate

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins