What to set the clipboardData to for exchanging styled text with a 3rd party app

Paul Dupuis paul at researchware.com
Mon Nov 13 12:18:19 EST 2023


Hivemind,

Recommendation as to what is best to set the clipboardData property to, 
when you want to copy styled text from a field to the clipboard for 
exchange with a 3rd party (any 3rd party) application that supports some 
form of styled text, that can include text in multiple languages (i.e. 
Unicode)?

Examples:
1) set the clipboardData["rtf"] to the rtfText of fld "X"
2) set the clipboardData["html"] to the htmlText of fld "X"
3) set the clipboardData["text"] to the text of fld "X" -- since the 
text in field since LC7 is unicode
4) set the clipboardData["unicode"] to the textEncode(fld "X","UTF-16")

Something else? Should fullClipboardData or rawClipboardData be used 
instead? Looking for best practice recommendation.




More information about the use-livecode mailing list