Re: When me is not me

2018-03-12 Thread Bob Sneidar via use-livecode
It is this sort of thing which inspired me to start using long id's for everything whenever I make calls to cards or stacks not the one I am currently on. That is why I created getParentCard() and getParentStack(). I then pass the local long id of the callign object to whatever script I am

Re: When me is not me

2018-03-11 Thread Ali Lloyd via use-livecode
It certainly sounds like it to me... On Sat, 10 Mar 2018 at 17:05, Brian Milby wrote: > Ali, he was doing the former. So could this actually be a bug? > On Sat, Mar 10, 2018 at 6:17 AM Ali Lloyd via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> In theory that

Re: When me is not me

2018-03-10 Thread Brian Milby via use-livecode
Ali, he was doing the former. So could this actually be a bug? On Sat, Mar 10, 2018 at 6:17 AM Ali Lloyd via use-livecode < use-livecode@lists.runrev.com> wrote: > In theory that shouldn't be the problem - `the of me` should > short-circuit to directly evaluating the property of the object with

Re: When me is not me

2018-03-10 Thread Ali Lloyd via use-livecode
In theory that shouldn't be the problem - `the of me` should short-circuit to directly evaluating the property of the object with the behavior, rather than evaluating `me` as a name first. This is why `put the long id of me into tID` also works. Peter, in your original script are you doing set

Re: When me is not me

2018-03-09 Thread Brian Milby via use-livecode
I think I know what is going on. If you add a couple of put statements to that script you will find that "me" by itself doesn't include the card or stack. So "put me" would give something like [group "Language Choice"] which isn't specific enough from another card. This works: local tID put

Re: When me is not me

2018-03-09 Thread Peter Bogdanoff via use-livecode
Yes, it works great if you are on the card, not if you are somewhere else. > On Mar 9, 2018, at 6:03 PM, Mike Bonner via use-livecode > wrote: > > Nevermind. Another card. DOH > > On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > >>

Re: When me is not me

2018-03-09 Thread Mike Bonner via use-livecode
Nevermind. Another card. DOH On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner wrote: > What version? Its working for me in 9 dp11 by using either dispatch or > send to the group. > > In the group: > command doit pbtn >set the hilitedbutton of me to pbtn > end doit > > And

Re: When me is not me

2018-03-09 Thread Mike Bonner via use-livecode
What version? Its working for me in 9 dp11 by using either dispatch or send to the group. In the group: command doit pbtn set the hilitedbutton of me to pbtn end doit And from the message box.. send ("doit" && 2) to group 1 or dispatch "doit" to group 1 with 3 On Fri, Mar 9, 2018 at 6:23

When me is not me

2018-03-09 Thread Peter Bogdanoff via use-livecode
I learned something today. I was trying by script to set the hilite of a radio button in a group on another card. My script is in the group “Language Choice” which is called by openStack. I’m thinking that “me” would operate on the group: set the hilitedButton of me to tNum Didn’t