strange nested groups behaviour

jbv jbv.silences at club-internet.fr
Mon Sep 10 06:49:22 EDT 2007



Jan,

Nevertheless I think it can be considered as a bug, or at least
as a serious limitation of the engine.

The Rev doc for "owner" says "Reports which object is next
in the object hierarchy", and since xml is now widespread, one
can expect "owner" to behave somehow like "parentNode"...

JB

>
> As you concluded, "the owner of me" returns a short
> reference to the group, which can of course be
> ambiguous. If you have multiple groups with the same
> name on your card, Revolution will then grab the first
> group it can find.
>
> The solution is to work with the long ID of the object
> itself. The long ID of the owner is then word 4 to -1
> of this long ID.
> This trick resolves the name ambiguity.




More information about the use-livecode mailing list