Repeat statement

Ben Rubinstein benr_mc at cogapp.com
Tue Mar 11 13:27:30 EDT 2008


On 6/2/08 15:26, Thomas McGrath III wrote:
> I am still trying to remember how repeat for each worked with deleting 
> blank lines. ???

	function deleteBlankLines tOld --> tNew
		put empty into tNew
		repeat for each line tLine in tOld
			if tLine <> empty then put tLine & return after tNew
		end repeat
		return tNew
	end deleteBlankLines

- Ben




More information about the Use-livecode mailing list