Page 1 of 1

Copy a card from one stack into a different stack

Posted: Tue Dec 05, 2023 12:47 am
by djkesler
I know the dictionary says to "copy this card to stack "whatever""", but I can not get that to work. I also tried using the card ID and the Stack ID along with other explicit naming of the card and the target stack.

I tried using the project manager to move it, but no joy. I went back to LC8 trying to find something that would work.

Are there caveats on the copy card operation that are not listing in the dictionary entry?

I had a large stack that has been regularly corrupting on a save :( and I am trying to rebuild a new stack with bits of the old one until I find where the corrupting code is located.

Any suggestions would be appreciated ..

David Kesler

Re: Copy a card from one stack into a different stack

Posted: Tue Dec 05, 2023 3:43 pm
by djkesler
I found my error. If a stack is password protected and locked it won't allow a card to copied out of it.

Duh, that makes sense!

It would be nice if there was a note in the Dictionary that reminds us of that, or an error on the copy operation that warns that a password protected stack will not allow cards to be copied out of them.

Re: Copy a card from one stack into a different stack

Posted: Tue Dec 05, 2023 9:44 pm
by SparkOut
Hi, one approach that helps debugging when you get an error like this, is to check "the result" after the problematic statement. You often get a good clue, and often in real language (not just opaque codes). I don't know if that would have been useful in your situation, but maybe.

Re: Copy a card from one stack into a different stack

Posted: Wed Dec 06, 2023 5:37 am
by dunbarx
What Sparkout said.

A good result is an empty result.

Craig