Items in a group

Klaus Major klaus at major-k.de
Thu Dec 15 12:41:54 EST 2005


Hi Peter,

> I've been searching the documentation.  I'm sure this is an easy  
> one, but how do I get the items that are in a group?  I can't find  
> that in the documentation anywhere.  I want to iterate through each  
> item in my group and do something with it.

The magic word is "controls" :-)

...
repeat with i = 1 to the num of controls of grp 1
    ## do something to control i of grp 1
end repeat
...

Hope that helps.

> Thanks!
>
> Peter T. Evensen
> http://www.PetersRoadToHealth.com
> 24-hour recorded info hotline: 1-800-624-7671

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list