lineoffset doesn't find empty lines
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.
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) ) ?
>> 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
>> So.. bug or not?
>> official ChatRev page:
>> 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:
More information about the Use-livecode