Works in a button but not in the message box

dunbarx at aol.com dunbarx at aol.com
Sat Jul 21 13:51:33 EDT 2012


I agree, the message box is often frazzled trying to keep track of everything.


If you substitute "card CardName|cardNumber|cardID" for "this card", does the problem go away?


Craig Newman



-----Original Message-----
From: J. Landman Gay <jacque at hyperactivesw.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sat, Jul 21, 2012 1:26 pm
Subject: Re: Works in a button but not in the message box


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

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list