is in group

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

is in group

Post by jmburnod »

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: 2988
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

is in group

Post by jmburnod »

Thank you SparkOut,

Your script work fine

Regards

Jean-Marc
Post Reply