Change Field Property in All Fields of a Stack

DunbarX at aol.com DunbarX at aol.com
Tue Jun 15 09:51:05 EDT 2010


Do you need to do this on a regular basis? If so, you can put the code I 
just sent into the stack script, but change it:

on changeAllFields tProperty,tValue
   repeat with y = 1 to the number of cds
     repeat with x = 1 to the number of fields of cd y
       set the tProperty of fld x of cd y to tValue
     end repeat
   end repeat
end changeAllFields

Now you can call this from a button, say, with:

on mouseUp
    changeAllFields yourProperty,yourValue
end mouseUp

Make sure that the properties and their values are sympatico. You would not 
want to set the textSize of your fields to "italic". (Do you know about 
"try" control structures?)

Craig Newman



More information about the Use-livecode mailing list