[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

chr(13) and Memo

Posted on 1997-06-23
1
Medium Priority
?
270 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 40 total points
ID: 1337682
Try this way:memo1.Lines.Add('bob');memo1.Lines.Add('hello')Vygintas
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

649 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