Rename object

Richmond richmondmathewson at gmail.com
Thu Jul 4 08:14:55 EDT 2019


However . . .

If I do this:

onmouseUp

setthelockScreentotrue

setthemoveSpeedto65000

putitem 1 ofthemouseLocintoML1

putitem 2 ofthemouseLocintoML2

moveimg "mill" toML1, ML2

copyimg "mill" togroup"map"

setthenameoflast image to("mill" & ML1 & "," & ML2)

setthemoveSpeedto200

setthelockScreentofalse

endmouseUp


The "funny" thing is that the image that gets renamed is NOT the clone 
in the group, but

the original one.


Richmond.



On 4.07.19 11:30, Klaus major-k via use-livecode wrote:
> Hi Richmond,
>
>> Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode <use-livecode at lists.runrev.com>:
>>
>> I've lost this . . . having done it several times before . . .
>>
>> So: I duplicate an object, let's call it img "XXX", so I end up with
>> 2 objects called "XXX" (which is problematic), and I wish to
>> rename the new version of "XXX" . . .
>> err . . .
>> set the name of the last/recent/latest/headache
> ...
> set the name of last img to "XXX_2"
> ...
>
>> Richmond.
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> 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