Looping over all controls
Thanks. This works, repeat with x=1 to the number of controls in this cd put word 1 of the name of control x into controltype if controltype is "button" then ... else if controltype is "field" then ... end if end repeat look in the dictionary for "controls" Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Looping over all controls
look in the dictionary for "controls" Jim Ault Las Vegas On 2/18/07 2:09 PM, "Ben Fisher" <[EMAIL PROTECTED]> 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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Looping over all controls
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution