lineoffset doesn't find empty lines

Jim Ault jimaultwins at yahoo.com
Sun Aug 16 17:23:42 EDT 2009


On Aug 16, 2009, at 2:05 PM, stephen barncard wrote:

> find all double CRs? if CR is your line delimiter. An empty line would
> always have a second line delimiter like itself immediately afterward.
>

Just to mention in Rev you can

set the lineDelimiter to "/"

but the filter command only considers CR's as lines,
and ignores the lineDelimiter

The rule should be to test various functions before relying on them to  
do what you assume they will do.

Jim Ault
Las Vegas



>
> 2009/8/16 Brian Yennie <briany at qldlearning.com>
>
>> I would think that technically, it should work with wholeMatches =  
>> true.
>> Otherwise, with wholeMatches = false, it should return nothing.
>>
>> I based this on consistency with the "normal" string logic that:
>>
>> empty = empty (TRUE)
>> empty contains empty (FALSE)
>>
>> With that said, it sounds like lineOffset isn't equipped to deal  
>> with this.
>> Maybe you could use something like:
>>
>> offset( (the lineDelimiter)&(thelineDelimiter) ) ?
>>
>>
>> Hi
>>>
>>> I was trying to find an empty line in some text, and thought that
>>> lineoffset would be perfect for that. however, it seems to not  
>>> work with the
>>> search-string being "".
>>>
>>> I also thought this used to work (though i'm not totally sure, and  
>>> haven't
>>> checked).
>>>
>>> So.. bug or not?
>>>
>>> thanks
>>> björnke
>>>
>>>
>>> --
>>>
>>> official ChatRev page:
>>> http://bjoernke.com?target=chatrev
>>>
>>> Chat with other RunRev developers:
>>> go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev
>>>
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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

Jim Ault
jimaultwins at yahoo.com






More information about the use-livecode mailing list