Page 1 of 1

Determining if an object is within a group

Posted: Sat Aug 25, 2012 7:00 pm
by teacherguy
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.

Re: Determining if an object is within a group

Posted: Sat Aug 25, 2012 7:25 pm
by jacque
Check the "owner" in the dictionary.

Re: Determining if an object is within a group

Posted: Sat Aug 25, 2012 8:14 pm
by teacherguy
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!