Question regarding the clipboard

Alex Tweedly alex at
Wed Jan 26 10:08:30 EST 2005

Lynch, Jonathan wrote:

>I have a problem that occurs about one in ten times. I have a long
>string, like around 60 - 70 thousand characters. It is necessary to
>remove all of the linefeeds from this string. After I remove the
>linefeeds, I put the string into the clipboard.
>Usually, it works just fine. But occassionally, it only places the first
>2 or 3 thousand characters on the clipboard.
>Each card in my stack contains a bunch of news articles, that are
>combined and given html formatting. For a given card, if it has this
>problem, then it will have it every single time. But the next day, with
>a new set of news articles and a new card, it probably won't have this
>By sitting here and playing with one of the cards in which this problem
>occurs, I have determined that the string still retains all of its
>Thus, the problem lies in setting the clipboardData to the string. Can
>anyone imagine a reason why the clipboardData wouldn't take the whole
>thing (but only occassionally)?
There's a limit of 65,536 characters in a line within a field. I wonder 
if the clipboard counts as a field for this purpose ?

-- Alex.

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 25/01/2005

More information about the Use-livecode mailing list