Deleting lines within a 'repeat for each' loop

Ludovic Thébault ludovic.thebault at laposte.net
Tue Aug 19 04:00:01 EDT 2003


On Tue, 19 Aug 2003 18:00:07 +1000, Martin Steer wrote:

Try, (if you are sure that you don't need any empty line) :

on mouseUp
> 
>   put ".ds_store" & return & "Help File 1.xml" & return & "Help File 
> 3.xml" into fileList
> 
>   put 1 into i
> 
>   breakpoint
>   repeat for each line currLine in fileList
>    put "" into line i of fileList
>     add 1 to i
>   end repeat
> replace cr&cr with cr in filelist
> end mouseUp



More information about the use-livecode mailing list