Looking for a control in a group
m.schonewille at economy-x-talk.com
Mon Feb 18 16:48:55 CST 2008
The easiest way probably is
repeat with x = 1 to number of controls of grp "blabla"
-- do something with control x of grp "blabla"
It might be faster to make a list of id numbers of controls that
satisfy particular conditions as you make those controls. You can
keep such a list in a custom property. That way, you can call the
controls directly. You might want to do this, if you have a very
large number of controls in your group.
Economy-x-Talk Consulting and Software Engineering
Convert colours between different colour spaces with Color Converter.
Download at http://economy-x-talk.com/cc.html
Op 18-feb-2008, om 23:37 heeft François Vanzeveren het volgende
> Hello All,
> I am trying to write a piece of code to search for a control (based
> on the
> ID) within a group.
> I am looking for something like
> Foreach field f in group “mygroup”
> -- do something on f
> How can I do sth like this? Maybe there is a faster way to find a
> control within a group?
> Thanks for your help.
More information about the use-livecode