get nesting level of controls

Dave dave at looktowindward.com
Wed Nov 29 13:32:19 EST 2006


On 29 Nov 2006, at 15:00, Scott Rossi wrote:

> 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... ?
>

Does group -1 work?

All the Best
Dave





More information about the Use-livecode mailing list