when sent a message, the target can't find itself!

ambassador at fourthworld.com ambassador at fourthworld.com
Sun Aug 5 01:51:17 EDT 2012


Kay C Lan

> tFldRef will now equal Let's put something in to field xxx
>
> tFldRef is a variable, when you put something into a variable
> the variable contents change.

The "put" command is handy for many things, but its use in HyperCard to 
allow setting values in objects lent itself to ambiguity, and LiveCode's 
faithful following of that tradition means that from time to time we'll 
see people stuck with cumbersome expressions requiring a lot of 
concatenation, "quote&quote" stuff, and a "do" command.

A simpler habit to get into with LC, one that can withstand any form of 
valid object reference, is to use the property form instead with "set":

    set the text of tFldRef to tSomeValue

--
   Richard Gaskin
   Fourth World
   LiveCode training and consulting: http://www.fourthworld.com
   Webzine for LiveCode developers: http://www.LiveCodeJournal.com
   Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list