'go card' goes with (unnecessary) Errror
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
'go card' goes with (unnecessary) Errror
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
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
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
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
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
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
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"]
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
Re: 'go card' goes with (unnecessary) Errror
Hermann
No, Interesting point, but LC will resolve this as intended.
Craig
No, Interesting point, but LC will resolve this as intended.
Craig
Re: 'go card' goes with (unnecessary) Errror
Hi,
just installed LC 9.5.0; my reported problem has vanished …
Thank you all.
Peter
just installed LC 9.5.0; my reported problem has vanished …
Thank you all.
Peter
Re: 'go card' goes with (unnecessary) Errror
Good news.
But in what version then was the anomaly?
Craig
But in what version then was the anomaly?
Craig
Re: 'go card' goes with (unnecessary) Errror
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
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
This warms my heart, to see someone use Hypercard-like dictionary syntax in an ordinary line of text.I think I never | seldom before...

Craig