Little Transcript Help Over Here, Please
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jul 3 01:45:12 EDT 2008
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?
More information about the use-livecode
mailing list