Re: Refer to new group?

2016-08-05 Thread Bob Sneidar
Is there a such thing as "first group"? If so, then "last group" has to mean the one with the highest ordinal. So perhaps we need something like "latest group" or "newest group"? Bob S On Aug 3, 2016, at 07:31 , Richard Gaskin >

Re: Refer to new group?

2016-08-03 Thread Monte Goulding
> On 3 Aug 2016, at 3:31 PM, Richard Gaskin wrote: > > Thanks for moving that forward, Monte. > > I agree that the best solution would be for "it" to contain the long id of > the newly created group. > > "last group" doesn't appear to be broken per se, because

Re: Refer to new group?

2016-08-03 Thread Richard Gaskin
Monte Goulding wrote: > Funnily enough I bumped up against this on Monday when making this > patch https://github.com/livecode/livecode-ide/pull/1301/files > and filed > this report http://quality.livecode.com/show_bug.cgi?id=18118 >

Re: Refer to new group?

2016-08-02 Thread Monte Goulding
Funnily enough I bumped up against this on Monday when making this patch https://github.com/livecode/livecode-ide/pull/1301/files and filed this report http://quality.livecode.com/show_bug.cgi?id=18118

Re: Refer to new group?

2016-08-02 Thread Jeanne A. E. DeVoto
At 10:41 AM -0700 8/2/2016, Phil Davis wrote: Not so. Try this: You're right. I was thinking in terms of grouping objects that are already at the top of the layers, as with a bunch of newly created objects. ___ use-livecode mailing list

Re: Refer to new group?

2016-08-02 Thread Scott Rossi
I thought I had read that the LC guys had fixed "it" to reliably refer the newly created group. If this still doesn't work, another workaround is to set the name of the templateGroup before creating any group, so you have a guaranteed reference when the group is created. I've used this option

Re: Refer to new group?

2016-08-02 Thread Richard Gaskin
Wilhelm Sanke wrote: > submitted in 2009 is still pending. > *Bug 8275* -Groups: > Bugs and features ("last group" broken)? > *Status*: PENDING Thanks, Wilhelm. I had thought I'd seen a new engine enhancement for this, but apparently I'm

Re: Refer to new group?

2016-08-02 Thread Wilhelm Sanke
Bug 8275 about "Groups: Bugs and features ("last group" broken)?" submitted in 2009 is still pending. Kind regards, Wilhelm Sanke *Bug 8275* -Groups: Bugs and features ("last group" broken)? *Status*: PENDING *Version*: 4.0.0

Re: Refer to new group?

2016-08-02 Thread dunbarx
inal Message- From: Phil Davis <rev...@pdslabs.net> To: How to use LiveCode <use-livecode@lists.runrev.com> Sent: Tue, Aug 2, 2016 1:43 pm Subject: Re: Refer to new group? Not so. Try this: create button "first" create button "second" create b

Re: Refer to new group?

2016-08-02 Thread Phil Davis
I should have said "refer to the child control by ID or name" - neither of which are affected by grouping. Phil On 8/2/16 9:37 AM, Phil Davis wrote: If you use the "owner" method of getting the group's ID, be sure you refer to the child control by ID - its number will *always* be changed

Re: Refer to new group?

2016-08-02 Thread Phil Davis
Not so. Try this: create button "first" create button "second" create button "third" put the name of button 1 group button 1 and button 2 put CR & the name of button 1 after msg Under your scenario, I would expect the name of button 1 to be "first" both times we put the

Re: Refer to new group?

2016-08-02 Thread Jeanne A. E. DeVoto
At 9:37 AM -0700 8/2/2016, Phil Davis wrote: If you use the "owner" method of getting the group's ID, be sure you refer to the child control by ID - its number will *always* be changed by the act of grouping it. ... if you refer to it as "control N", but not if you refer to it as "field N"

Re: Refer to new group?

2016-08-02 Thread Phil Davis
If you use the "owner" method of getting the group's ID, be sure you refer to the child control by ID - its number will *always* be changed by the act of grouping it. Phil Davis On 8/2/16 9:04 AM, Jeanne A. E. DeVoto wrote: At 8:37 AM -0700 8/2/2016, Richard Gaskin wrote: Apparently the

Re: Refer to new group?

2016-08-02 Thread Jeanne A. E. DeVoto
At 8:37 AM -0700 8/2/2016, Richard Gaskin wrote: Apparently the "group" command is an exception to the general rule that "it" will contain the long ID of a newly-created object after a command that creates it. And using "last" is not always reliable with groups. Since your script knows

Re: Refer to new group?

2016-08-02 Thread Richmond
Just did this: on mouseUp group btn "A" and btn "B" set the name of the last group to "GROOOP" end mouseUp and it worked. Why would 'last' not be reliable? Richmond. On 2.08.2016 18:37, Richard Gaskin wrote: I vaguely recall some new language element recently added to allow us to

Refer to new group?

2016-08-02 Thread Richard Gaskin
I vaguely recall some new language element recently added to allow us to more reliably refer to newly-created groups. Apparently the "group" command is an exception to the general rule that "it" will contain the long ID of a newly-created object after a command that creates it. And using