Looping over all controls

Jim Ault JimAultWins at yahoo.com
Sun Feb 18 17:16:38 EST 2007


look in the dictionary for "controls"

Jim Ault
Las Vegas


On 2/18/07 2:09 PM, "Ben Fisher" <jamon.ben at gmail.com> wrote:

> Is there a convenient way to loop over all controls in a card or group?
> 
> I could keep a list of IDs, adding and deleting as necessary, but this
> isn't so simple.
> 
> In the past I have used:
> 
> repeat with x = 1 to the number of btns in this cd
> if there is a btn x then
> --Do something with this btn
> end if
> end repeat
> 
> But it seems error-prone and not the best way.
> 
> -Ben
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list