Determining if an object is within a group

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Determining if an object is within a group

Post by teacherguy » Sat Aug 25, 2012 7:00 pm

I was working on some "switch" code where I wanted one of the cases take action if an object is a member of group.

Is there any way to do this? I was hoping for something like

case image tShortName of card 1 is in group "my group"

But I don't see anything in the dictionary.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7394
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Determining if an object is within a group

Post by jacque » Sat Aug 25, 2012 7:25 pm

Check the "owner" in the dictionary.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Determining if an object is within a group

Post by teacherguy » Sat Aug 25, 2012 8:14 pm

Perfect, thanks so much. You'd think it would make sense for LC to mention that relationship under the "see also" for group in the dictionary, no?

Thanks again!

Post Reply