Hi Mikey,

As Sarah writes, you may have to remove "bg".

Are you sure that the variable theButton contains "north" and are you sure that the button is on the current card when you execute the script?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info.

On 3 jul 2008, at 05:56, Mikey wrote:

If I do the following in a script:
put "north" into theButton
global status
put the hilite of bg button theButton into status

and check status, I get the value I expect, namely the hilite of the bg
button North.

However, if I
if the hilite of bg button theButton then

OR

if (the hilite of bg button theButton) then

I get a message execution error:  Error Description:  Chunk:  no such
object.

So if I combine both of these, status gets the value I would expect, but I
still get the error.

So what's wrong with my code, please?

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to