On 02/16/2011 05:20 PM, Peter Brigham MD wrote:
On Feb 16, 2011, at 10:10 AM, Richmond wrote:

Umm . ..

so I have a field [called fld "TEKST"]full of text and I select some of it with my mouse

I then click on a button that contains the following script:

on mouseUp
   copy the selected of fld "TEKST"
end mouseUp

nix!

now, I've tried "the selectedText" and "the selectedChunk" to no avail . . .

Please advise

First, the traversalon of the button must be false or the selection in the field will be wiped out by the mouseclick before it can to used. With this in place, if you just use:

on mouseUp
   copy
end mouseUp

if should work. An alternative is to put this in the button script:


It DOES: Thank you so much; you have really given me a "Clint Eastwood moment" [= made my day]

sincerely, Richmond
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to