Re: Object naming

2020-07-28 Thread Jerry Jensen via use-livecode
Dave’s not here. https://www.youtube.com/watch?v=rtDAK7Umk7A > On Jul 27, 2020, at 10:24 PM, Richard Gaskin via use-livecode > wrote: > > Consider a simplified problem statement: > > You have two objects of the same type in a container, and you want to tell > them apart but had given them

Re: Object naming

2020-07-28 Thread Martin Koob via use-livecode
From Kids in the Hall https://www.youtube.com/watch?v=8nvzEqsZIGo Martin > On Jul 28, 2020, at 2:32 PM, Jim Lambert via use-livecode > wrote: > > Zanzibar Buck-Buck McFate was my lawyer. > One day I asked if I could call him Zanz. > He said, “Nah. Just call me Dave!” > > Jim Lambert > >

Re: Object naming

2020-07-28 Thread Jim Lambert via use-livecode
Zanzibar Buck-Buck McFate was my lawyer. One day I asked if I could call him Zanz. He said, “Nah. Just call me Dave!” Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
On 28/07/2020 08:27, Curry Kenworthy via use-livecode wrote: Alex: > Using unambiguous short names prevents behaviour scripts > that references child controls completely Sure about that? (Option A) Yes, I think I am. At least, it prevents using names of the child objects in the script.

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
Thanks Martin. That does indeed work (might need tweaking for some more complex cases). However, it goes through all controls on the card - the same effect is achieved without the performance risk using the childControlIDs, as in function idOfChild pLongID, pShortName   repeat for each line

Re: Object naming

2020-07-28 Thread Alex Tweedly via use-livecode
On 28/07/2020 06:24, Richard Gaskin via use-livecode wrote: Consider a simplified problem statement: You have two objects of the same type in a container, and you want to tell them apart but had given them the same name. +100 OK, when I stop laughing, I will admit I am convinced :-)

Re: Object naming

2020-07-28 Thread Richmond via use-livecode
You are asking for trouble. Think about something as goofy and as simple as this: Inside A1, there is a rect called "R1" and also a group called "B1" inside B1 there is a rect called "R2" . . . Am I missing something? Richmond. On 28.07.20 10:27, Curry Kenworthy via use-livecode wrote:

Re: Object naming

2020-07-28 Thread scott--- via use-livecode
So Alex, the takeaway here seems to be that once you name your child objects… “now it’s too late.” While reading this out aloud, I taught my classes of 2nd and 3rd graders to say, “Noo” after the second line. And I usually paused to let the class finish Oliver Boliver’s name. — Scott

Re: Object naming

2020-07-28 Thread Curry Kenworthy via use-livecode
Alex: > Using unambiguous short names prevents behaviour scripts > that references child controls completely Sure about that? (Option A) > Inside A, there is a rect called "R" and also a group called "B" > inside B there is a rect called "R" Or put the "direct" R in a subgroup also. (Option

Re: Object naming

2020-07-28 Thread JB via use-livecode
That is really cool, Richard! JB Sent from my iPad > On Jul 27, 2020, at 10:26 PM, Richard Gaskin via use-livecode > wrote: > > Consider a simplified problem statement: > > You have two objects of the same type in a container, and you want to tell > them apart but had given them the same