From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Used to get and set binary data from/to the Clipboard as a string for the specified type or UTI.
The DataType parameter supports both the older MacType and newer UTIs. If the DataType parameter is exactly 4 bytes then it is treated as a MacType for backwards compatibility. Otherwise it is treated as a UTI. An example would be "public.rtf".
On Windows you can use the a special DataType called "HTML Format" to add or fetch HTML data from the clipboard.
This code reads the contents of the Clipbpoard as an mp3 file.
On Windows, this code gets HTML data from the Clipboard:
The following code places the contents of TextArea1 on the Clipboard. It contains RTF text: