The group command

Richard Gaskin ambassador at fourthworld.com
Sun Feb 20 21:56:01 EST 2011


Peter Haworth wrote:

 > The dictionary says I can refer to the group created by the group
 > command by using the last keyword as in "last group".  Has anyone
 > used this successfully?

As the others here have noted, it's possible to create a group such that 
it won't be ordinally last.

Instead, you can take advantage of a convention the engines uses with 
reasonable consistency in which the local variable "it" will contain the 
long ID of a new object immediately after it's been created, e.g.:

create grp; put it

-- 
   Richard Gaskin
   Fourth World
   LiveCode training and consulting: http://www.fourthworld.com
   Webzine for LiveCode developers: http://www.LiveCodeJournal.com
   LiveCode Journal blog: http://LiveCodejournal.com/blog.irv





More information about the use-livecode mailing list