Copying a group
miscdas at boxfrog.com
miscdas at boxfrog.com
Sun Aug 3 12:15:01 EDT 2003
Jacqueline Landman Gay wrote:
>Before I bugzilla this, I want to know if others think it really is a
>bug, or if it should be considered normal behavior. I can't decide.
>I have a group that consists of several fields. The group has
>backgroundBehavior set to true. Each card has different text in the
>fields of the group. The current card of the stack is, say, three.
>In another stack, I issue the command:
>
> copy group "myGroup" of stack "Main" to this cd
>
>I expect to see the contents of card three when the group is copied.
>Instead I see the contents of card one. The work-around is to go to the
>Main stack, copy the group, go back to the second stack, and paste. Then
>I do get the contents of card three.
>The results of the copy command kind of make sense, since I didn't
>specify what card I wanted, and so I got the first card by default.
>However, the command:
> copy group "myGroup" of cd 3 of stack "Main" to this cd
>doesn't work either, I still get the contents of card one.
>Is it a bug or is it normal?
>--
>Jacqueline Landman Gay | jacque at hyperactivesw.com
>HyperActive Software | http://www.hyperactivesw.com
==================
By the way, you will also get only the first card copied when you set the
group backgroundBehavior to false.
Also, you get the same result if you try this from card 3 of stack "myMain"
copy group "myGroup" to card 1 of stack "myStack2"
and also
copy group "myGroup" of card 3 to card 1 of stack "myStack2"
And a really fun rsult comes from:
first find the ID of the group on card 3 of stack "myMain" (in my example
the group ID is 1022)
Then try this from stack "myStack2"
copy group ID 1022 of stack "myMain" to this card
On Win XP Pro, rev2.0.1, I indeed got group "myGroup" copied to the card (at
least according to its name), BUT ALL OF THE FIELDS ARE E-M-P-T-Y! So, you
can't even do a work-around by using the group ID.
I suspect that when trying to refer to a group by name that is on many
cards, either the lowest ID of the group or the ID of the first instance of
the group is retrieved.
So it appears that using copy-and-paste via the clipboard invokes a
different routine.
miscdas
More information about the use-livecode
mailing list