The "space" char is not an end-of-line char, nor is the end-of-line char
a space char. The function is working properly. If you're trying to
separate chunks of a string based on "whitespace" then you'll have to
walk through the string yourself, or stick to regular expressions or
something.
- Ryan Dary
Dennis Birch wrote:
> Somebody at RS is working on the holiday. I was just entering a bug
> report for an internal error I encountered, and checked the earlier
> bug report I logged about split and EndOfLine. Here's the evaluation
> for the report, which is now marked as "Not a bug":
>
> "Split takes two parameters, the first being the string being split,
> and the second being the delimiter. The delimiter parameter has a
> default value of a Space (" "). When splitting by spaces, EndOfLine is
> not a valid delimiter."
>
> It seems to me that Split is somewhat useless if it doesn't take into
> account an EndOfLine in the middle of a chunk of text it's splitting.
> If it included an array element that had the word before the
> EndOfLilne, the EndOfLine and the word after the EndOfLine, I could
> consider that functional (although not as useful as I would hope), but
> it didn't. In the sample project I included, the words after an
> EndOfLine simply do not appear in the array. Does anybody else agree
> that this is less than ideal or even incorrect functionality?
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>