Getting the immediate "parent" group of an object

Scott Rossi scott at tactilemedia.com
Thu Jul 7 17:54:01 EDT 2016


Wouldn't "owner" work for this?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/7/16, 2:50 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami"
<use-livecode-bounces at lists.runrev.com on behalf of brahma at hindu.org>
wrote:

>If you don't want to enter mouseup handlers all over the UI, the usual
>means is to trap for the target in the card script or stack script.
>
>is there a way to get the immediate "parent" group of a group object?
>In case like this I have a number of "portal-link-label" as the subgroups
>are all made from a template.
>
>but the group name itself is unique
>
>group "home-read"
>
>so the long name of the target is:
>
>field "portal-link-label" of group "home_read" of group "portal-links" of
>card "home" of stack
>"/Users/Brahmanathaswami/Documents/App-Development/SivaSivaAppWorking/_Siv
>aSource/source/modules/home/home.livecode"
>
>So  then you have to so some parsing magic  to determine which is the
>send level group.. from this long string. Is there an easier way?
>
>It would be sweet if we could do something like
>
>get the parent group of the target
>
>where "parent" was the name of the group the object was in.
>BR
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list