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.SetStyledText
Put styled text on the clipboard.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Clipboard | 5.0 | Yes | No | No | No | Yes |
MBS( "Clipboard.SetStyledText"; Text ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Text | The styled text to put in clipboard. | "Hello World" |
Result
Returns OK or error.
Description
Put styled text on the clipboard.This is direct way for styled text without converting in-between to RTF.
For Windows or cross platform solutions you can combine Text.TextToRTF and Clipboard.SetRTFText.
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.
Examples
Put red text on the clipboard:
MBS( "Clipboard.SetStyledText"; TextColor ( "Hello World" ; RGB ( 65535 ; 0 ; 0 ) ) )
See also
Example Databases
Created 17th November 2014, last changed 26th December 2019
Clipboard.SetRTFText - Clipboard.SetText
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos