Page 1 of 1

'go card' goes with (unnecessary) Errror

Posted: Fri Aug 02, 2019 9:37 pm
by pderks
Hi,

I can't get rid of this interrupting error (see picture).

Both button script and message command do this:
• the card name is set,
• card 2 is opened,
• the error appears,
• no answer.

Kind thanks

Peter

Re: 'go card' goes with (unnecessary) Errror

Posted: Fri Aug 02, 2019 10:21 pm
by Klaus
Hi Peter,

just tested with LC 9.5.0 Stable (fresh stack with 2 unnamed cards and same script in message box)
on my Mac and it works as exspected. Means I see the dialog with -> AAA

Try without "... of this stack" in the script:
set the name of cd 2 to "AAA";go cd "AAA";answer the name of this cd

If that does not work for you, please load the final version of LC and try again,
if you are not using it already.

Get it here: https://downloads.livecode.com/livecode/


Best

Klaus

Re: 'go card' goes with (unnecessary) Errror

Posted: Fri Aug 02, 2019 11:02 pm
by dunbarx
The extra term "of this stack" cannot be the issue. If you are already on the stack of interest, it is merely superfluous, If not, it is required to locate the proper stack.

Are we sure there is in fact a card 2 I know you said there was a successful navigation to card 2, but are we sure? "No such object" should not appear if there was no such card.

One more thing. I am often tripped up when i combine lines using the semicolon. It is hard to know which of the collected lines throws the error. Try separating them, and see exactly which of those three is the culprit.

Please let us know if Klaus' suggestion of a new install fixes this. I somehow doubt it will. If not, post the stack.

Craig

Re: 'go card' goes with (unnecessary) Errror

Posted: Sat Aug 03, 2019 10:26 am
by [-hh]
Your line in the message box works in LC 6/7/8/9.

Possibly there is an openCard or closeCard handler that errors?

[Do you use that name?
These are usual problems with the name:

Set name: set the name of cd 2 to "AAA"
Get name:
get the name of cd 2 --> returns card "AAA"
get the short name of cd 2 --> returns "AAA"]

Re: 'go card' goes with (unnecessary) Errror

Posted: Sat Aug 03, 2019 2:29 pm
by dunbarx
Hermann

No, Interesting point, but LC will resolve this as intended.

Craig

Re: 'go card' goes with (unnecessary) Errror

Posted: Mon Aug 05, 2019 12:30 am
by pderks
Hi,

just installed LC 9.5.0; my reported problem has vanished …

Thank you all.

Peter

Re: 'go card' goes with (unnecessary) Errror

Posted: Mon Aug 05, 2019 1:29 am
by dunbarx
Good news.

But in what version then was the anomaly?

Craig

Re: 'go card' goes with (unnecessary) Errror

Posted: Tue Aug 06, 2019 3:23 am
by pderks
Hi Craig,

the anomaly occured in LiveCode 9.0.4.
I think I never | seldom before used "go cd" with a literal card name.

Peter

Re: 'go card' goes with (unnecessary) Errror

Posted: Tue Aug 06, 2019 5:10 pm
by dunbarx
I think I never | seldom before...
This warms my heart, to see someone use Hypercard-like dictionary syntax in an ordinary line of text. :wink:

Craig