set selectedText?

Ken Ray kray at sonsothunder.com
Thu Nov 18 18:02:56 EST 2004


On 11/18/04 10:05 AM, "Kaveh Bazargan" <kaveh at focalimage.com> wrote:

> While we are on this topic, why is it that I can say:
> 
> put selectedLine of the target into temp
> delete temp
> 
> but not
> 
> delete selectedLine of the target
> 
> What is the fundamental point I am missing?

Well, first of all "selectedLine" is a global property, which returns
something like "line 1 of field 2". You would think you can just do:

  delete the selectedLine

-- but you can't. I'm not exactly sure why (perhaps it is resolving the
value of that line of data), but it *does* work if you "do" it, as in:

  do "delete" && the selectedLine

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list