How to go to newly cloned card?
Mark MacKenzie
m.mackenzie at sasktel.net
Sat Feb 7 19:49:21 EST 2004
Yes, this is one of the things that was driving me mad. Upon creating
the card, according to the literature I should have been "taken" there
(to the freshly cloned card).
The button with that handler is on one card, a so called master card and
the card being cloned is another card in the same stack. I wonder if
the difference is that I wasn't on the cloning target card when invoking
the clone command by using something like:
on mouseUp
clone this card
end mouseUp
However, as I posted just before now. After shutting down in disgust
for awhile, when opening up this stack project, the handler I posted
about works like a charm.
I will check the use of "it" as you pointed out, thank you. It very
well may be dodgy. I was attempting to work to the transcript entry for
the "clone" command. What had caught my interest was: "The clone
command places the name property of the newly created object in the it
variable." I see now that this is not exactly what I wrote in the
handler either. Thanks for the tip to that point. I will correct that
and see what happens.
Live and oh so hopefully, I learn.
Regards Mark MacKenzie
Rob Cozens wrote:
>> For several iterations now I can successsfully create a cloned card
>> of the target card BUT I cannot navigate to it to allow the user to
>> begin filling in the information. It has got to be something simple
>> I am missing but I am missing it and so must call upon the list to
>> help me in my ignorance and frustration.
>
>
> Couple of thoughts, Mark.
>
> First,
>
> set the name of it to "Empty Card"
>
> appears to be invalid syntax: "the name of it" should perhaps be "the
> name of this card"
>
> Second, Rev dictionary says re the clone command, "If the object is a
> card, the copy becomes the current card."; so you don't need to go to
> the card: you are on it once you've cloned it.
>
> Hope this helps.
More information about the use-livecode
mailing list