referring to object names stored in variables

dunbarx at dunbarx at
Sun Aug 14 16:58:39 EDT 2011


These two scripts do very different things. Colin, have you known about this since HC days?

on mouseup
  put the selectedLine into temp
  do "put X after" && temp
end mouseup

on mouseup
  put "X" after the selectedLine
end mouseup

And which is the selectedLine in a locked field that has no selection? Is this implied as the clickLine? Never knew that...


-----Original Message-----
From: Colin Holgate <coiin at>
To: How to use LiveCode <use-livecode at>
Sent: Sun, Aug 14, 2011 11:14 am
Subject: Re: referring to object names stored in variables

That wasn't what I had referred to. Lock the text of your field, and try this 

on mouseup
   put "bla" after the selectedline
end mouseup

then click on line 1. Where does the text appear?

On Aug 14, 2011, at 1:25 PM, J. Landman Gay wrote:

> From the message box: put "blah" after line 2 of fld 1

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list