'go card' goes with (unnecessary) Errror

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pderks
Posts: 58
Joined: Sat May 14, 2011 4:25 pm

'go card' goes with (unnecessary) Errror

Post by pderks » Fri Aug 02, 2019 9:37 pm

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
Attachments
BSF •  2019-08-02 um 22.22.10.png

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Fri Aug 02, 2019 10:21 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Fri Aug 02, 2019 11:02 pm

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

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

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

Post by [-hh] » Sat Aug 03, 2019 10:26 am

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"]
shiftLock happens

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Sat Aug 03, 2019 2:29 pm

Hermann

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

Craig

pderks
Posts: 58
Joined: Sat May 14, 2011 4:25 pm

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

Post by pderks » Mon Aug 05, 2019 12:30 am

Hi,

just installed LC 9.5.0; my reported problem has vanished …

Thank you all.

Peter

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Mon Aug 05, 2019 1:29 am

Good news.

But in what version then was the anomaly?

Craig

pderks
Posts: 58
Joined: Sat May 14, 2011 4:25 pm

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

Post by pderks » Tue Aug 06, 2019 3:23 am

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Tue Aug 06, 2019 5:10 pm

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

Post Reply