Repeat statement

Thomas McGrath III 3mcgrath at comcast.net
Tue Mar 11 15:03:19 EDT 2008


Thanks Ben,

I had a brain fart... as it were.

I am now trying to grasp grandchildren in XML in REV....

Thanks Tom

On Mar 11, 2008, at 1:27 PM, Ben Rubinstein wrote:

> 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