referring to object names stored in variables

dunbarx at aol.com dunbarx at aol.com
Sun Aug 14 16:58:39 EDT 2011


Fascinating.


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...



Craig


-----Original Message-----
From: Colin Holgate <coiin at verizon.net>
To: How to use LiveCode <use-livecode at lists.runrev.com>
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 
script:

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 lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list