next repeat problem

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


--- Rich Lague <laguer at ucs.orst.edu> 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
theList

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.
http://promotions.yahoo.com/new_mail


More information about the use-livecode mailing list