get nesting level of controls

Scott Rossi scott at tactilemedia.com
Wed Nov 29 10:00:00 EST 2006


Recently, Viktoras Didziulis wrote:

> Is there any handler or function to tell what group or card any selected
> control belongs to ?

This brings up a related point: when you have a group that contains several
nested groups, why does the following generate a "can't find background"
error?

  get name of last group of group myCoolGroup

The workaround for me has been to use:

  put number of groups of group myCoolGroup into N
  get name of group N of group myCoolGroup

It seems Rev is unable to deal with "last" when referring to nested groups.
Because... ?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com





More information about the use-livecode mailing list