Message Sending Problems

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Apr 14 08:05:42 EDT 2005


Hi David,

You always SET a property (custom or built-in): set the rect of me to 
myAdjustRect
You always PUT into a variable (or any container): put x into item 1 of 
tRect
Hope this clarifies :-)
Best,

Le 14 avr. 05, à 13:42, David Burgun a écrit :

> Hi,
>
> Ok, I have got that working by using "quote"! Now I have another 
> problem!
>
> The message handler that gets called is like so:
>
> on Adjust theAdjustValue, theAxes
> local myAdjustRect
>
> put rect of me into myAdjustRect
> if theAxes = "Width" then
>     add theAdjustValue to item 4  of myAdjustRect
> else
>     add theAdjustValue to item 3 of myAdjustRect
> end if
>
> put myAdjustRect  into rect of me  -****** Error Here
> end Adjust
>
> This work except I get the following Script Error on the statetment 
> marked *****
>
> Type: Chunk Source is not a container
> Object: "G-1027"
> Line :  put myAdjustRect  into rect of me
>
>
> However is I change the line to:
>
> set the rect of me to myAdjustRect
>
> It works fine!!!!
>
> Any Ideas what is going wrong?


Amicalement,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
----------------------------------------------------------------
Web site		http://www.sosmartsoftware.com/
Email		eric.chatonet at sosmartsoftware.com/
Phone		33 (0)1 43 31 77 62
Mobile		33 (0)6 20 74 50 86
----------------------------------------------------------------



More information about the use-livecode mailing list