clear fields -- a faster way

Bill Humphrey Bill at BlueWaterMaritime.com
Mon Jun 6 08:07:23 EDT 2005


I want to clear fields like this:

 repeat for each field tField in card "DocApplication" of stack 
"CustomForms"
   put empty into tField
end repeat

but I keep getting the error "bad terminator" -- what am I doing wrong?


Sarah Reichelt wrote:

>> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>



More information about the use-livecode mailing list