New line in memo?

How to go into new line when editing memo?
I try with <span style='color:red'>data1.memo := 'first line+#13+#10+'second line';</span> but it doesn't work.

Comments

  • edited January 2004
    I have used a separate stringlist to add several strings and then used

    ParValue := MyStringlist.Text in the GetValue routine.

    But I have also used constructions like; 'MyText'#13#10'Moretext'.

    It worked for me. ;)

    If you want to add several strings to a memo internally, you can probably use a RichtText object in stead of a memo. In RTF a new line is '\par'. Write a few lines with Wordpad, save it to an rtf file and look at the rtf code with Notepad. You can use the rtf text as a single string.
    However, I found working with the RichtText Object problematic.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.