how do you identify the current group name (or ID)?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Tue Feb 7 11:17:07 EST 2006


Hi Jonathan,

Normal behavior :-)
The engine searches for the first field named "myField".
So I assume that the number/layer of your field "myField" is deeper  
in "TopGroupA" than the one of field "myField" in "TopGroupB"
Avoid to have two controls of same type with the same name :-)

Le 7 févr. 06 à 15:59, Jonathan Lynch a écrit :

> If you have nested groups, layed out like this:
>
> group "TopGroupA"
>   group "subgroup"
>     field "myField"
>
> group "TopGroupB"
>   group "subgroup"
>     field "myField"
>
>
> Say you have a script for field "myField" of group "subgroup" of  
> group "B",
> and one line of that script says this:
>
> get the short name of the owner of the owner of me
>
> This line should return "TopGroupB", but Rev doesn't process it  
> that way.
> Instead it will return "TopGroupA"

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list