set selectedText?

Robert Brenstein rjb at rz.uni-potsdam.de
Thu Nov 18 19:29:58 EST 2004


>At 5:02 pm -0600 18/11/04, Ken Ray wrote:
>>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
>
>Indeed "do" works.
>
>Still not clear on this, and Ken saying he is not sure makes me feel
>better. ;-)
>
>I need to do some reading on the use of brackets, use of "the", and some
>fundamental things like that.
>--

It seems that delete is quite picky: the compiler does not even allow 
parenthesis after delete. It seems to expect only a specific object 
as the first word and anything else results in some kind of error.

Robert


More information about the use-livecode mailing list