Works in a button but not in the message box

J. Landman Gay jacque at hyperactivesw.com
Sat Jul 21 13:24:15 EDT 2012


On 7/21/12 11:53 AM, Thomas McGrath III wrote:
> OK, Here's a question:
>
> Why does this line of code work in a button but throw an error when run in the message box?
>
> set the rect of control "Container" to ((the left of this card + 5),(the bottom of group "nav bar" + 5),(the right of this card - 5),(the top of group "toolbar" - 5))

I see that occasionally. I think it has to do with the contortions the 
message box has to go through to evaluate expressions. Sometimes they 
don't work. Sometimes you can put the expression into a variable first 
and then execute the "set" using the 2-line message box.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list