clear fields -- a faster way

Klaus Major klaus at major-k.de
Mon Jun 6 08:16:15 EDT 2005


Hi Bill,

> 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?

sorry, but "repeat for each..." will only work with chunk expressions.

You will hve to use good ol':

repeat with i = 1 to the num of flds of cd "DocApplication" of stack  
"CustomForms"
      put emtpy into fld i of cd "DocApplication" of stack "CustomForms"
end repeat

Hope that helps...


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list