The "last" group

Peter Haworth pete at lcsql.com
Sat Apr 13 21:01:54 EDT 2013


Ah yes, I see it - that's what Scott suggested.

Pete
lcSQL Software <http://www.lcsql.com>


On Sat, Apr 13, 2013 at 5:36 PM, <dunbarx at aol.com> wrote:

> Check out the user note in the dictionary.
>
>
> Craig Newman
>
>
>
> -----Original Message-----
> From: Peter Haworth <pete at lcsql.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Sat, Apr 13, 2013 6:33 pm
> Subject: Re: The "last" group
>
>
> Thanks John.  That would have worked I think but I went with SCott's
> suggestion to use the templateGroup
>
> Pete
> lcSQL Software <http://www.lcsql.com>
>
>
> On Sat, Apr 13, 2013 at 1:54 PM, John Craig <john at splash21.com> wrote:
>
> > Worth a try;
> >
> > set the name of the owner of the last group to "grpA"
> >
> > Sent from my iPhone
> >
> > On 13 Apr 2013, at 21:15, Peter Haworth <pete at lcsql.com> wrote:
> >
> > > I think I ran into this a couple of years back but don't remember what
> > the
> > > workaround is.
> > >
> > > In some cases,, "the last group" does not return a reference to the
> last
> > > group created.  I'm not sure of all the circumstances that cause this
> but
> > > here's my situation.
> > >
> > > My script creates several groups, let's call them grp1, grp2,grp3, and
> > > after creating them, uses a group command to group all those groups
> into
> > > one outer group.  After the group command, I "set the name of the last
> > > group to "grpA".  The group that gets renamed is not the outer group
> but
> > > grp3.
> > >
> > > The group command, unlike just about any other command that creates an
> > > object does not return an ID in "it" so I have to use "the last group"
> > > construct, as recommended in the dictionary actually.
> > >
> > > I guess I will have to search through the groups and find the one with
> > the
> > > highest ID to identify the outer group but before I do that, any ideas
> > > about how else to do this?
> > >
> > > Thanks,
> > >
> > >
> > > Pete
> > > lcSQL Software <http://www.lcsql.com>
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list