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 »

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 »

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 »

Thank you so much !
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10502
Joined: Wed May 06, 2009 2:28 pm

Re: Pb with clipBoardData

Post by dunbarx »

You can also;

set the clipboardData to the htmlText of yourChunkOfData

Craig Newman
Post Reply