Storing and object reference in a var

dunbarx dunbarx at
Wed Jan 25 09:09:24 EST 2017


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.


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list