Solved

chr(13) and Memo

Posted on 1997-06-23
1
262 Views
Last Modified: 2010-04-04
This must be a very stupid and easy question but I cant seem to figure it out. If I have a memo box and do something like this: (say memo1.seltext="bob")

memo1.seltext := memo1.seltext + chr(13) + "hello";

it displays the following in the memo box:

bob|hello

what I want it to do is dislplay:

bob
hello

how do I get the memo box to make chr(13) a new line instead of a |. If i save the contents of memo1 and then reload it into the memo box it works fine.
I have also tried using chr(10) (I think that is what it was) and it does exactly the same thing.
0
Comment
Question by:Draco
1 Comment
 

Accepted Solution

by:
vyga earned 20 total points
ID: 1337682
Try this way:memo1.Lines.Add('bob');memo1.Lines.Add('hello')Vygintas
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 167
how to center only a line in richedit? 4 61
Convert GUI app into console app for Win32 Env 5 110
TEMBEDDEDWB how can i change its user agent ? 8 70
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question