Items in a group
Mark Schonewille
europe at ehug.info
Thu Dec 15 12:46:22 EST 2005
Peter,
Here are two scripts that return a list of names or ID numbers
of all controls in a group. Put these scripts in the stack
script or in the stack script of a stack in use.
(Mind line wraps).
getProp objects
repeat with x = 1 to number of controls of the target
put the name of control x of the target & return after myList
end repeat
return myList
end objects
getProp objectIDs
repeat with x = 1 to number of controls of the target
put the id of control x of the target & return after myList
end repeat
return myList
end objectIDs
Usage:
put the objects of group "My Group"
put the objectIDs of group "My Group"
Peter T. Evensen wrote:
> 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.
>
> Thanks!
--
eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com
Please inform me about vacancies in the field of
general economics at your institute. I am also looking
for new freelance programming projects.
More information about the use-livecode
mailing list