How to use parameters with sendMesssage
David Burgun
dburgun at dsl.pipex.com
Wed Apr 13 14:13:40 EDT 2005
Hi,
It's working now, I just didn't realize you had to put the parameters
into the string too!
Thanks a lot
Dave
>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
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list