set the name of last group not working?

Josh Mellicker josh at dvcreators.net
Tue Feb 14 18:35:55 EST 2006


On Feb 14, 2006, at 2:38 PM, Peter T. Evensen wrote:

> Are you on the card in which you are creating these groups?

Yes.


>   There was a bug where the ID of a cloned or copied object was not  
> being set properly, which caused all sorts of bizarre results (like  
> what you describe).  This bug only happened if you were not on the  
> card in which you were creating the objects.   I believe it was  
> fixed in 2.7.  This bug might happen in other cases.  Did you try  
> this with 2.7?

Yes.

I simplified it down to:

  group grp "daveGroup" AND fld "spooky"
  set the name of last group to "newName" --Rev renames the wrong  
thing- how do you rename the top group?


Someone download this stack, click the blue button and tell me I'm  
crazy!

http://revcoders.org/stacks/badNaming.rev






>
> At 04:34 PM 2/14/2006, you wrote:
>> The doc says:
>>
>>    Tip:  To refer to the newly-created group, use the last keyword:
>>
>>      group button "Yes" and button "No"
>>      set the name of last group to "Do It"
>>
>>
>> Yet with this script:
>>
>> clone group "dave"
>> set the name of it to "spooky" -- correctly names the clone
>> group "spooky" AND fld "water"
>> set the name of last group to "drinking" --Rev renames the cloned
>> group "spooky" to "drinking", and leaves the name of the master group
>> to grp "id 1028"
>>
>>
>> I get the same result when changing the last line to:
>>
>> set the name of it to "drinking"
>>
>>
>> ---
>>
>> Is this a bug in Rev?
>>
>> Or am I doing something wrong?
>>
>> How do you name a newly formed group that consists of a group and a
>> field?
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> Peter T. Evensen
> http://www.PetersRoadToHealth.com
> 314-629-5248 or 888-628-4588
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>




More information about the use-livecode mailing list