next repeat problem

Jan Schenkel janschenkel at
Tue Aug 17 15:44:40 EDT 2004

--- Rich Lague <laguer at> wrote:
> Thanks Klaus (and Jan!),
> Yes, adding the complete descriptor for i did allow
> my 'next repeat' to 
> run. However, I'm still having problems getting rid
> of the extra lines 
> in my global variable.
> I have also been trying your suggestion of using
> 'repeat for each'.
> I get an error when I try to 'apply' this script--
> set the itemdel to tab
> repeat for each line i in fld "daTable"
> if i = empty then
> delete line i of fld "daTable"
> else
> put item 1 of field "daTable"  & return after
> theList
> end if
> end repeat
> The error I get is "Chunk: error in chunk
> expression" and it highlights 
> the line "put item 1 of field "daTable"  & return
> after theList" -- 
> this is a line of the script that worked before...
> Rich

Hi Rich,

Glad to be of help. I think the engine is not sure
what you're trying to do, so you need to hlp it a bit
with parentheses :
  put (item 1 of field "daTable") & return after

Hope this helped,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

More information about the Use-livecode mailing list