Hard Returns in a TextArea and SPLIT

I have just about got my report working as I want it to with one exception.

I have a text area on a form that I want to print on a hardcopy report using BK_Shorts. I move the TextArea.Text data to a string and then use the following statement to build an array (sWords) of the individual words in the string.

sWords() = sTextBlock.Split(" ")

I then add the individual words to a string until it reaches my maximum line length - I then I start a new line.

The problem is if I have a hard return in the text area it causes problems - skipping the line after the break.

Any suggestions would be greatly appreciated.

You could split by ENDOFLINE, you might need to use split(““ + EndofLine) to get it to complile. That gives you all the “lines” then do your same process of splitting over “ “ over each line.

You could try

sWords() = sTextBlock.ReplaceAll(EndOfLine, "").Split(" ")

Except I want the EndOfLines to define possible paragraphs in the textarea.

this sounds like a solution. thanks