how to format text for copy-pasting as a spreadsheet table

Brian Milby brian at milby7.com
Thu Feb 8 11:03:21 EST 2018


See my code here:
https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript

"updateClipboardHtmlText" will take the HTMLText on the clipboard (which
gives the extra lines)
and replace the tags so it doesn't do that. I'm not sure if this will do
what you want though...
I've tried once before and the tabs don't get picked up this way in a
spreadsheet. It will get
rid of the extra lines, but probably place each line in a single cell.

On Thu, Feb 8, 2018 at 9:47 AM Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:

> You can. You will just get 2 returns instead of the one when you paste it
> anywhere but in an app that knows how to handle the contents of that
> clipboard.
>
> Bob S
>
>
> > On Feb 8, 2018, at 06:40 , dunbarx via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > put "cat" & tab & "dog" & tab & "eel" & return & "red" & tab & "blue" &
> tab
> > & "yellow" into myList
> > set the clipBoardData to myList
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list