Re: Learned my lesson

2020-04-17 Thread Mark Wieder via use-livecode
On 4/17/20 6:53 PM, Phil Davis via use-livecode wrote: I feel your pain! I switched to using "of me" or "of the owner of me" whenever possible which works very well in many/most cases, but sometimes it just isn't enough. "the mainstack of this stack" always work as well. Almost always. Don't

Re: Learned my lesson

2020-04-17 Thread Bob Sneidar via use-livecode
I’ve also discovered the childControlIDs and the childControlNames. These list the direct children of a group. The controlNames and controlIDs list EVERY object on a card whether grouped or not. The latter becomes especially handy of you preface your object names with some kind of type

Re: Learned my lesson

2020-04-17 Thread Phil Davis via use-livecode
I feel your pain! I switched to using "of me" or "of the owner of me" whenever possible which works very well in many/most cases, but sometimes it just isn't enough. Phil Davis On 4/17/20 6:41 PM, Bob Sneidar via use-livecode wrote: I just spent 2 hours purging the detestable “this stack”

Learned my lesson

2020-04-17 Thread Bob Sneidar via use-livecode
I just spent 2 hours purging the detestable “this stack” from my entire list of projects. If you use substacks, if you hide and show stacks, this stack simply unreliable. Instead put this at the head of every script that needs to know what the parent stack is: put getParentStack(the long id of