Re: Rename object

2019-07-09 Thread Mark Wieder via use-livecode

On 7/9/19 3:59 PM, Dr. Hawkins via use-livecode wrote:


Wow, I can do that?

All these years, and still little details . . .


ikr

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-09 Thread Dr. Hawkins via use-livecode

On Jul 4, 2019, at 9:33 AM, Dar Scott Consulting via use-livecode 
 wrote:
> 
> clone control "gizmo" as "blivet"


Wow, I can do that?

All these years, and still little details . . .
— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(702) 508-8462

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread Richmond via use-livecode

Virtual Kisses!

That rocks so completely I am almost in love with you . . .

 . . . almost because:

1. I believe in marital vows, and, unfashionably, love my wife after 28 
years of marriage.


2. Am 98% heterosexual (anyone who says they are 100% is being 
disingenuous).


Richmond.

On 4.07.19 19:33, Dar Scott Consulting via use-livecode wrote:

Would this work?

clone control "gizmo" as "blivet"



On Jul 4, 2019, at 10:04 AM, doc hawk via use-livecode 
 wrote:


On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
 wrote:

set the name of last img to “XXX_2"

Also

clone control “gizmo”
set the  name of it to “blivet"

Will  handle your new object.

If I’m going to work with the  new object for a few lines, I always use

put the long id of it into tgTg

As the next  line, just in case I do something  that changes “it”


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread Richmond via use-livecode

Hmphf . . .

. . . feeling fairly 'pseudo' myself, and stumping off to work my way 
through something
a bit more worthwhile, like, "Le Recherche Sur Les Verites" by Nicholas 
Malebranche
(OK, OK, I admit it, I'm reading the Lennon and Olscamp English 
translation), which,

frankly, rocks.

Richmond.

On 4.07.19 18:16, dunbarxx via use-livecode wrote:

Richmond.

  (pseudo)

Duplicate object
set the name of last object to the short name of the last object & the
number of thatObjectType + 1

Note that as of v.8, and this is an known issue, the keyword "last" may not
support groups. I am not sure if this has been fixed in v.9.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Richmond via use-livecode
"it" is, quite frankly, both a bore and something that makes 9-11 year 
olds wish that
Paiget were not dead, but were on hand to explain things (and as the 
average 9-11 year old

is not up-to-speed in Swiss French . . . ), or, at a push, Seymour Papert.

While I am, arguably, at the stage of abstract thinking, most of my 
educational charges are, most

definitely, not. ;-)

Richmond.

On 4.07.19 15:57, Trevor DeVore via use-livecode wrote:

On Thu, Jul 4, 2019 at 4:27 AM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:


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


After using “copy” a reference to the new object is stored in the “it”
variable.

set the name of it to “NEWNAME”




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread Richmond via use-livecode

Almost completely 'done'. 8-)

Where would I be without your help throughout the years (well, about 18 
at my last count)?


No! Don't answer that one; it's rhetorical.

Richmond.

On 4.07.19 15:26, Klaus major-k via use-livecode wrote:

Hi Richmond,


Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode 
:

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.

Hey, you did not mention GROUP in your first posting! 8-)

The groups layer is obviously LOWER that the one of your image-to-be-copied in 
this case,
so just add:
...
set the name of last image OF GRP "map" to ("mill" & ML1 & "," & ML2)
...
and you are done.


Richmond.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Dar Scott Consulting via use-livecode
Would this work?

clone control "gizmo" as "blivet"


> On Jul 4, 2019, at 10:04 AM, doc hawk via use-livecode 
>  wrote:
> 
> 
> On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
>  wrote:
>> 
>> set the name of last img to “XXX_2"
> 
> Also
> 
> clone control “gizmo”
> set the  name of it to “blivet"
> 
> Will  handle your new object.
> 
> If I’m going to work with the  new object for a few lines, I always use
> 
> put the long id of it into tgTg
> 
> As the next  line, just in case I do something  that changes “it”
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread doc hawk via use-livecode

On Jul 4, 2019, at 1:30 AM, Klaus major-k via use-livecode 
 wrote:
> 
> set the name of last img to “XXX_2"

Also

clone control “gizmo”
set the  name of it to “blivet"

Will  handle your new object.

If I’m going to work with the  new object for a few lines, I always use

put the long id of it into tgTg

As the next  line, just in case I do something  that changes “it”


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread dunbarxx via use-livecode
Richmond.

 (pseudo)

Duplicate object
set the name of last object to the short name of the last object & the
number of thatObjectType + 1

Note that as of v.8, and this is an known issue, the keyword "last" may not
support groups. I am not sure if this has been fixed in v.9.

Craig



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Trevor DeVore via use-livecode
On Thu, Jul 4, 2019 at 4:27 AM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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


After using “copy” a reference to the new object is stored in the “it”
variable.

>
set the name of it to “NEWNAME”

-- 
Trevor DeVore
ScreenSteps
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode 
> :
> 
> 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.

Hey, you did not mention GROUP in your first posting! 8-)

The groups layer is obviously LOWER that the one of your image-to-be-copied in 
this case,
so just add:
...
set the name of last image OF GRP "map" to ("mill" & ML1 & "," & ML2)
...
and you are done.

> Richmond.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Richmond via use-livecode

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 
:

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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 14:02 schrieb Richmond via use-livecode 
> :
> 
> Thank you, Klaus,
> 
> makes me feel even more stupid than I was feeling already. ;-)

you are welcome! :-D

> Richmond.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Richmond via use-livecode

Thank you, Klaus,

makes me feel even more stupid than I was feeling already. ;-)

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 
:

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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Sean Cole (Pi) via use-livecode
local tList
repeat with rImgNum = 1 to the number of images [in card "x"]
if the short name of img rImgNum is among the lines of tList then
set the name of img rImgNum to the name of tImg rImgNum & "x"
end if
put the short name of img rImgNum into line rImgNum of tList
end repeat
-- Done!

Sean Cole
*Pi Digital Productions Ltd*
'Don't try to think outside the box. Just remember the truth: There is no
box!'
'For then you realise it is not the box you are trying to look outside of,
but it is yourself!'


On Thu, 4 Jul 2019 at 09:30, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Richmond,
>
> > Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode <
> use-livecode@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
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rename object

2019-07-04 Thread Klaus major-k via use-livecode
Hi Richmond,

> Am 04.07.2019 um 10:26 schrieb Richmond via use-livecode 
> :
> 
> 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
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode