Deleting 1 line from a long list

Ludovic Thébault ludovic.thebault at laposte.net
Wed Oct 22 00:13:45 EDT 2003


On Tue, 21 Oct 2003 14:50:10 +1000, Igor Couto wrote:

Try

> function fDeleteLine pList,pString
> 	if pList is empty then return empty
> 	if pString is empty then return pList
put "" into plist2
> 	repeat for each line l in pList
> 		if l <> pString then
> 			put l&cr after pList2
> 			end if
> 	end repeat
> 	return pList2
> end fDeleteLine

Ludovic


More information about the use-livecode mailing list