Re: Object naming

2020-07-27 Thread Jerry Jensen via use-livecode
+100 to Mr. Gaskin! > 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 the same name. > > > > Too Many Daves

Re: Object naming

2020-07-27 Thread Richard Gaskin via use-livecode
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. Too Many Daves by Dr. Seuss Did I ever tell you that Mrs. McCave Had twenty-three sons and she named them all Dave?

Re: Object naming

2020-07-27 Thread Martin Koob via use-livecode
Hi Alex You could use the owner of the control in conjunction with the name of the control to distinguish between the two graphic’s named ‘R’. I did that for the simple case in your example but may not work with something more complex. I created a stack with the same hierarchy of graphics

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
On 27/07/2020 21:26, Curry Kenworthy via use-livecode wrote: Use unambiguous SHORT names! Thanks, but ... Yes, using unambiguous SHORT names solves this naming problem, but introduces other problems. In particular, this group script should (probably) be a behaviour script, since the

Re: Object naming

2020-07-27 Thread Curry Kenworthy via use-livecode
Richard: > The simplest is to use unambiguous names +1! Alex: > Is there an unambiguous name in this case ? Use unambiguous SHORT names! Alex: > (i.e. A-R, not A-B-R) +1! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and

Sorting numbers on a datagrid

2020-07-27 Thread Heriberto Torrado via use-livecode
Dear LiveCode experts, I have had an annoying problem with a datagrid since years ago.  Now is the time to fix it. One of the columns is numeric (CustomerID). It takes the data form an MYSQL Database. When I sort the data by clicking on the CustomerID column, the customer numbers appear

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
On 27/07/2020 16:33, Richard Gaskin via use-livecode wrote: There are many ways to refer to things.  The simplest is to use unambiguous names for things that matter. Is there an unambiguous name in this case ? And if so, what is it :-) ? A group "A" contains a rectangle "R", and a (sub)group

Re: OAuth2 was Re: google sheets - anybody doing anything besides mergGoogle

2020-07-27 Thread Prothero@earthlearning via use-livecode
Ben, I’d find a sample stack to be useful. I’ll leave details of what constitutes a “library” to others. There are some best practices, tho. What I see is usually a text stack with that main handlers with a sample stack that demos basic calls. That said, if you don’t have the time to get into

Re: OAuth2 was Re: google sheets - anybody doing anything besides mergGoogle

2020-07-27 Thread Ben Rubinstein via use-livecode
Hi Bill (and Neville) Happy to post it - I'll try to do a bit of cleanup and commenting first. (Honestly I think it's probably just going to be an email to the list.) Afore I do, I had this question: (I say library - currently it's a button I copy and paste to stacks where I need it, and

Re: Object naming

2020-07-27 Thread Alex Tweedly via use-livecode
Thanks Mark and Andre. Mark's description of the solution is correct - but in my situation it's not a solution. The sub-groups (B in my earlier example) are opaque - they have coloured, filled backdrops so that they can capture e.g. mouseMove messages, so they need to be opaque. Therefore,

Re: Object naming

2020-07-27 Thread Richard Gaskin via use-livecode
There are many ways to refer to things. The simplest is to use unambiguous names for things that matter. -- Richard Gaskin Fourth World Systems Alex Tweedly wrote: I think my head is melting :-) I have a group called 'A'. Inside A, there is a rect called "R" and also a group called "B"

[ANN] This Week in LiveCode 234

2020-07-27 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #234 here: https://bit.ly/3g60YXc This is a weekly newsletter about LiveCode, focussing on what's been going on in and

Re: Object naming

2020-07-27 Thread Andre Garzia via use-livecode
Alex, I think that Mark solution is the correct one but I couldn't resist telling you some other idea, one that is only applicable if performance is not a problem. You can add custom properties to controls you want to find later and then look for them by looping everyone in the card. A reusable

Re: breakpoint causes 3 second delay then exit to top

2020-07-27 Thread Bernard Devlin via use-livecode
Here's another data point for this oddity. Once the IDE starts tripping out from breakpoints and I restart Livecode to fix the problem, the behavior in which the breakpoints stop working has "detached" from the object pointing to it. I say "detached", as the object still shows in the Inspector