Storing and object reference in a var

dunbarx dunbarx at aol.com
Wed Jan 25 15:09:24 CET 2017


Hmmm.

SetProps notwithstanding, one could;

on mouseUp
   put the name of fld 1 into hh
   set the abc of hh to "xyz"
end mouseUp

This will indeed create a custom property (abc) of field 1 and set it to
"xyz". In this case LC evaluates the variable "hh" as an object reference. I
would have thought that a "do" construction would have been required here,
but not so.

Craig



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Storing-and-object-reference-in-a-var-tp4711908p4711922.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list