Repeat statement

Björnke von Gierke bvg at mac.com
Tue Mar 11 23:04:16 EDT 2008


I know the title says repeat, and i am a bit tired, but why can't you  
let the engine do it for you (it's bound to be faster):

filter notWantEmptyInThis without empty

On 11 Mar 2008, at 20:03, Thomas McGrath III wrote:

> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list