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


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to