Pb with clipBoardData

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Physiologos
Posts: 2
Joined: Fri Aug 30, 2013 10:32 am

Pb with clipBoardData

Post by Physiologos » Fri Aug 30, 2013 10:52 am

Hi. I am using the "set the clipBoardData to fld XXX" function in order to copy/paste a code including underlined letters AND letters not underlined (ex.: B7CE8), but the result doesn't take the underlined letters into account (and the code becomes for example B7CE8). Any idea ?
Thanks.

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Pb with clipBoardData

Post by bangkok » Fri Aug 30, 2013 11:19 am

Try :

set the clipBoardData ["rtf"] to the rtftext of fld "myfield"

Physiologos
Posts: 2
Joined: Fri Aug 30, 2013 10:32 am

Re: Pb with clipBoardData

Post by Physiologos » Fri Aug 30, 2013 11:31 am

Thank you so much !

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10356
Joined: Wed May 06, 2009 2:28 pm

Re: Pb with clipBoardData

Post by dunbarx » Fri Aug 30, 2013 3:21 pm

You can also;

set the clipboardData to the htmlText of yourChunkOfData

Craig Newman

Post Reply