lineoffset doesn't find empty lines

stephen barncard stephenREVOLUTION2 at barncard.com
Sun Aug 16 17:05:32 EDT 2009


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

-------------------------
Stephen Barncard
San Francisco
http://barncard.com


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
>



More information about the use-livecode mailing list