address fields with same name, disregarding IDs

Alex Tweedly alex at tweedly.net
Fri Feb 4 08:00:00 EST 2005


Kresten Bjerg wrote:

>Working with problems of over-size cards I need to adress (put to) 9
>duplicates of a field, same name but 9 different IDs
>Is there an easy way?
>  
>
How about

>  repeat with i = 1 to the number of controls on this stack
>    if the name of control i = "field" && quote&"Field"&quote then
>      put "asdf" into control i
>      end if
>  end repeat
>  
>
-- 

Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.4 - Release Date: 01/02/2005



More information about the use-livecode mailing list