control references

Monte Goulding monte.goulding at
Mon Jun 24 22:14:01 EDT 2002

Got it:

The problem is that when you try to send the object reference it actually
sends the value of the object reference. What you need to do is force it to
send the literal by quoting it like this

on mouseUP
  send "changeObjectSide" && quote&the long ID of me&quote
end mouseUp

on changeObjectSide pObject
  put char 2 to -1 of pObject into pObject
-- note you must remove the quotes before using the
-- object reference and this could easily be done with a function
-- to simplify the code.
  put the rect of pObject into theRect
  put theRect
end changeObjectSide


Monte Goulding
B.App.Sc. (Hons.)

Executive Director
Sweat Technologies

email: monte at
mobile: (+61) 0421 138 274

More information about the Use-livecode mailing list