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

Bob Sneidar bobsneidar at iotecdigital.com
Thu Feb 15 11:44:35 EST 2018


CTRL-K is the standard keyboard equivalent, but LC does not respond to that. I suppose you can have a frontscript with a rawkeyDown handler that checks for CTRL-K (ascii 107) then put numToChar(11) into the selection. Remember to pass rawKeyDown. BTW I also use this to trap for other keys like cmd-C,X,Z,V so I can handle those functions properly when I have custom menus. 

Bob S


> On Feb 15, 2018, at 24:13 , J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On 2/14/18 7:53 PM, Paul Hibbert via use-livecode wrote:
>> As far as I can see, importing a table (with returns in a cell) info into LiveCode is much trickier, mainly because LiveCode doesn’t appear to support soft returns within a table cell,
> 
> I don't know if it applies to table cells, but LC supports soft line breaks in fields using numToChar(11). It doesn't work when dontWrap is true though, which may be the case in cells.
> 
> I'm still trying to figure out how to type that. If I need one in a field I have to insert it via script.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> 
> _______________________________________________
> 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