How to use parameters with sendMesssage
Scott Rossi
scott at tactilemedia.com
Wed Apr 13 13:33:57 EDT 2005
Recently, David Burgun wrote:
> I can't get this to send the correct paramater handler
>
> set myRect to 1,2,3,4
>
> sendMessage "UpdateData " & myRect to group "Update"
>
> on UpdateData theRect
> end updateData
>
> UpdateData gets called ok, but "theRect" is set to "1" - the rest of
> the list have gone.
>
> How can I send a Rect as a parameter like this?
I'm not really sure how your script works at all. If myRect is a custom
property, you have to use "the" in front of it, but I don't think that's
what you're after here.
Try 'put' instead of 'set':
put 1,2,3,4 into myRect
sendMessage "UpdateData " & myRect to group "Update"
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list