card id not valid
Friedrich F. Grohmann
ffgrohmann at gmail.com
Sat Nov 1 12:27:51 EDT 2014
Thanks to all kind souls who responded. Björnke's explanation helped a lot
and, indeed, I assumed the displayed name was actually the ID since so far
it never failed me.
Again, thanks a lot.
Best,
Fritz
On Sat, Nov 1, 2014 at 10:20 PM, Björnke von Gierke <bvg at mac.com> wrote:
> The Inspector does not show the ID of cards by default, it only pretends
> to do it, by using "card id xxxx" as default name. If you change the name,
> you can see the "real" id appear on top of the inspector window. This is
> done in the IDE with a script and might possibly be confused in your case
> (that'd be an IDE bug). But maybe you are simply looking at the name of the
> Card, but assume it's actually the ID, when it isn't anymore?
>
> Relevant here is that the card ID can be set by script (but no one should
> ever do that, it's only meant for people who want to recreate stacks from
> scratch, that's also why it's not documented). So maybe you accidentally
> change the ID instead of the layer of the card in your script?
>
> Try this in the multi line message box, or a button, to see the real ID's
> of your cards, independent of weird IDE behaviours and other, similar
> pitfalls:
>
> repeat with x = 1 to the number of cards
> put the ID of card x & cr after theResult
> end repeat
> put theResult
>
>
> On 01 Nov 2014, at 11:18, Friedrich F. Grohmann <ffgrohmann at gmail.com>
> wrote:
>
> > Thanks for your response.
> >
> > So far, indeed, I've reshuffled the cards by setting the number and never
> > had a problem. This strange situation arose when I wrote a script to
> move a
> > larger number of cards to the end of the stack and then tried to
> reconnect
> > the moved cards by their new ids to a button script. The really weird
> part
> > is that in a number of cases it works more or less, but for other cards
> the
> > id shown in the card inspector is not recognized at all.
> >
> > I have copies of the stack, so not everything is lost, but I just wonder
> > how such a scenario is possible and whether the situation could be
> > remedied.
> >
> > Thanks,
> > Fritz
> >
> >
> >
> > On Sat, Nov 1, 2014 at 5:31 PM, FlexibleLearning.com <
> > admin at flexiblelearning.com> wrote:
> >
> >> Sounds peculiar, unless the defaultStack has changed.
> >>
> >> Rather copy and paste to re-order the cards, have you tried setting the
> >> number of the card instead? This will retain the original card ID for
> >> continued navigation by ID.
> >>
> >> Hugh Senior
> >> FLCo
> >>
> >>
> >> Friedrich F. Grohmann <ffgrohmann at gmail.com> wrote
> >>
> >> I've run into a strange problem with a stack. After changing the order
> of a
> >> few cards (by way of copy/paste) a number of the involved cards will not
> >> respond to "go card id xxx". The card inspector clearly indicates both
> name
> >> and number of those cards. However, if I try to proceed to the card by
> its
> >> id, the message box tells me "No such card". If it's "go cd yyy" and
> yyy is
> >> the number of the card, no problem.
> >>
> >> I'm working with Livecode 5.5.4 and the stack involved has served me
> for a
> >> number of years so I don't think it is a problem of the version itself.
> >>
> >> Any suggestion how this could be solved?
> >>
> >> Thanks,
> >> Fritz
> >>
> >>
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list