Solved

chr(13) and Memo

Posted on 1997-06-23
1
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

696 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