Date added/modified: 01 Dec 1999
If you use the lines property of a memo to get the lines, you will get the lines as you see them on a word wrapped memo. Most of the time, for instance, when saving to a file, we want the lines as they really exist in the memo. The paragraphs should remain paragraphs without breaking them into lines. For this purpose, you should use the text property of the memo.
You might ask, "How do I get the lines one by one such that true lines are returned, i.e. each para is returned as a line?"
Create a temporary TStringList and set its text property to the text of the memo. This will give you the true lines in the TStringList. Don't forget to free your temporary TStringList object after processing.