is in 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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

is in group

Post by jmburnod » Fri Jul 10, 2009 10:33 pm

Hi All,

I need to known if an img is in a group

I tried :

Code: Select all

If img myImage is in group MyGroup then
show img myImage
else
hide img myImage
end if
but it rturn an error "chunk is not a container"

i understand is in work only with strimg (like explaned in the revdictionary)

I must write a function for that ?

Jean-Marc
Last edited by jmburnod on Sun Jul 12, 2009 10:12 am, edited 1 time in total.

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Fri Jul 10, 2009 11:05 pm

Try

Code: Select all

if "group" && quote & "MyGroup" & quote is in the long name of image "MyImage" then

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

is in group

Post by jmburnod » Sat Jul 11, 2009 7:58 am

Thank you SparkOut,

Your script work fine

Regards

Jean-Marc

Post Reply