Re: Pasting text and images together?

2023-08-30 Thread Richmond Mathewson via use-livecode

As far as I know image data cannot be pasted into LC.

I just tried pasting a banal image of a cat from an Ecosia search into a 
stack directly, and into an image, to no avail.


Best, Richmond.

On 30.08.23 19:35, David Epstein via use-livecode wrote:

 From a web browser, or from programs like Word or (Apple) Notes, it is 
possible to copy to the clipboard a single selection that includes both text 
and images.
Is there any way to paste all of this information to LiveCode—for example, 
placing the text in fields and the imageData in image objects, or showing 
everything in one field by setting the imageSource of some characters in that 
field?
After having copied such a collection of text and image information, the keys 
to the fullClipboardData seem only to include text and styled text options, 
with no indication of the images that are included on the clipboard.

David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sort bug

2023-08-30 Thread Neville Smythe via use-livecode
There is a bug in sorting a container using a function, as in

sort lines tVariable by myVal(each)

where the function is for example

function myVal pStr
return item 1 of pStr + item 2 of pStr
end myval

If the function myVal encounters a run-time error (in the example if one of the 
items is not a number) the sort command fails silently: the script exits at 
that code line and the user is unaware that the sort (and the rest of the 
handler) were not executed.

If you sort directly with

sort lines tVariable by (item 1 of pStr + item 2 of pStr)

the handler will throw an error dialog, as expected.

QC has confirmed this is a bug ( bug 24321 
 ) that evidently has been 
around for a long time.

Neville Smythe



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Pasting text and images together?

2023-08-30 Thread David Epstein via use-livecode
From a web browser, or from programs like Word or (Apple) Notes, it is possible 
to copy to the clipboard a single selection that includes both text and images.
Is there any way to paste all of this information to LiveCode—for example, 
placing the text in fields and the imageData in image objects, or showing 
everything in one field by setting the imageSource of some characters in that 
field?
After having copied such a collection of text and image information, the keys 
to the fullClipboardData seem only to include text and styled text options, 
with no indication of the images that are included on the clipboard.

David Epstein
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode