Does anyone know, a possible way, to covert a long line (approx 100 chars)
into a word-wrap formatted separate lines. (approx 22 chars wide)
In this case it are ingredients, all separated with space.
so input line could be:
and the output would become:Milk, Butter, Water, Nuts, Lemon, Sugar, Salt, Peanuts, Oil, Egg
The lines seperated by a CRLFMilk, Butter, Water,
Nuts, Lemon, Sugar,
Salt, Peanuts, Oil,
I have tried to load the input into a Memo, and put the "Wordwrap" on.
For visual/the looks, it works, but if i want to export the wordwrapped output out of the Memo,
then the format reverts back to the long line without the Carridge returns.
Ideal the output would contain a CRLF on the wrapped end of the line.
In the Memo object properties help-file it says:
Determines whether the edit control inserts soft carriage returns so text wraps at the right margin.
But a string replace wich replaces %CR% with %CRLF% does not find the %CR%
Or could a "soft carridge return" be an other character?
Or can i get the first line, second line, etc out the the Memobox?
Thanks in advance,