selecting the selected
    Klaus on-rev 
    klaus at major.on-rev.com
       
    Wed Feb 16 10:21:07 EST 2011
    
    
  
Hi Richmond,
> 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
the NY-Easy-Teenie-Remix version:
on mouseUp
   copy
end mouseUp
A more sophisticated (verbose) solution:
on mouseup
  set the clipboarddata["text"] to the selectedtext of fld "TEKST"
end mouseup
:-)
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
    
    
More information about the use-livecode
mailing list