LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld , heatherlaine , Klaus , kevinmiller , robinmiller
yeldarb
Posts: 43 Joined: Thu Dec 14, 2017 5:39 pm
Post
by yeldarb » Sun Dec 31, 2017 8:02 pm
I'm sure I'm missing something simple, but I can't seem to figure out how to check if a clicked-on button is a member of a group. I've gotten this far:
which correctly returns:
but if I change to
Code: Select all
put the owner of the target is grp "responseGroup"
I get an error:
yeldarb
Posts: 43 Joined: Thu Dec 14, 2017 5:39 pm
Post
by yeldarb » Sun Dec 31, 2017 8:05 pm
Ok, I need to say "the name of," as in
Code: Select all
put the owner of the target is the name of group "responseGroup"
bogs
Posts: 5480 Joined: Sat Feb 25, 2017 10:45 pm
Post
by bogs » Sun Dec 31, 2017 9:28 pm
Fun when stuff like that trips you up, ain't it just?
quailcreek
Posts: 746 Joined: Sun Feb 04, 2007 11:01 pm
Post
by quailcreek » Sun Dec 31, 2017 10:04 pm
If your code is in the group then I think what you want is something like this:
Code: Select all
put the short name of the owner of the target
If the code is in one of the members of the group then:
Code: Select all
put the short name of the owner of me
Tom
MacBook Pro OS Mojave 10.14
[-hh]
VIP Livecode Opensource Backer
Posts: 2262 Joined: Thu Feb 28, 2013 11:52 pm
Post
by [-hh] » Sun Dec 31, 2017 11:11 pm
shiftLock happens