clear fields

Sarah Reichelt sarahr at genesearch.com.au
Sun Jun 5 23:21:30 EDT 2005


> on mouseUp
>   repeat with x = 1 to the number of flds
>    put empty into fld x
> end repeat
> end mouseUp
>
> Now this works ok except that the card has some labels and the  
> script clears
> the label contents.
>
I use this sort of script which only clears editable fields.

on mouseUp
   repeat with x = 1 to the number of flds
    if the lockText of fld x is false then put empty into fld x
  end repeat
end mouseUp


Sarah



More information about the use-livecode mailing list